From: Michael Date: Sun, 22 Mar 2020 09:59:06 +0000 (+0000) Subject: We should use "self" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f8d20b365fce3ff4951086810db81ed9027e4904;p=friendica.git We should use "self" --- 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 {