mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:03:40 +00:00
We should use "self"
This commit is contained in:
parent
2c6c6579af
commit
f8d20b365f
1 changed files with 1 additions and 1 deletions
|
@ -663,7 +663,7 @@ class Photo
|
||||||
];
|
];
|
||||||
if (!Photo::exists($condition)) {
|
if (!Photo::exists($condition)) {
|
||||||
$condition = ['resource-id' => $image_rid];
|
$condition = ['resource-id' => $image_rid];
|
||||||
$photo = Photo::selectFirst(['allow_cid', 'allow_gid', 'deny_cid', 'deny_gid', 'uid'], $condition);
|
$photo = self::selectFirst(['allow_cid', 'allow_gid', 'deny_cid', 'deny_gid', 'uid'], $condition);
|
||||||
if (!DBA::isResult($photo)) {
|
if (!DBA::isResult($photo)) {
|
||||||
Logger::info('Image not found', ['condition' => $condition]);
|
Logger::info('Image not found', ['condition' => $condition]);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue