]> git.mxchange.org Git - friendica.git/commitdiff
We should use "self"
authorMichael <heluecht@pirati.ca>
Sun, 22 Mar 2020 09:59:06 +0000 (09:59 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 22 Mar 2020 09:59:06 +0000 (09:59 +0000)
src/Model/Photo.php

index dd6fe52899be41633b49abc47212194c75d9a069..b5d1ea894265c7c9abd0adf151ab4ad11c650e90 100644 (file)
@@ -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 {