From f8d20b365fce3ff4951086810db81ed9027e4904 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 22 Mar 2020 09:59:06 +0000 Subject: [PATCH] We should use "self" --- src/Model/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Photo.php b/src/Model/Photo.php index dd6fe52899..b5d1ea8942 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -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 {