]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
Replace removed Photo::select by new Photo::selectToArray in /photos
[friendica.git] / mod / photos.php
index 1ccfecdefe2acffeb5318713255b24a797880885..fa4d5b2814548c5cfbbad868779d9c988f5e5b8d 100644 (file)
@@ -635,7 +635,7 @@ function photos_post(App $a)
         * they acquire comments, likes, dislikes, and/or tags
         */
 
-       $r = Photo::select([], ['`album` = ? AND `uid` = ? AND `created` > UTC_TIMESTAMP() - INTERVAL 3 HOUR', $album, $page_owner_uid]);
+       $r = Photo::selectToArray([], ['`album` = ? AND `uid` = ? AND `created` > UTC_TIMESTAMP() - INTERVAL 3 HOUR', $album, $page_owner_uid]);
 
        if (!DBA::isResult($r) || ($album == L10n::t('Profile Photos'))) {
                $visible = 1;