We should use "self"
This commit is contained in:
parent
2c6c6579af
commit
f8d20b365f
|
@ -663,7 +663,7 @@ class Photo
|
|||
];
|
||||
if (!Photo::exists($condition)) {
|
||||
$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)) {
|
||||
Logger::info('Image not found', ['condition' => $condition]);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user