]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Photo.php
Replace x() by isset(), !empty() or defaults()
[friendica.git] / src / Model / Photo.php
index a9b4c0fb736fd139957518921de46f03cac308d5..a87730087f3a024934edd24c60f69a09692175e6 100644 (file)
@@ -97,7 +97,7 @@ class Photo
                $photo = DBA::selectFirst(
                        'photo', ['resource-id'], ['uid' => $uid, 'contact-id' => $cid, 'scale' => 4, 'album' => 'Contact Photos']
                );
-               if (x($photo['resource-id'])) {
+               if (!empty($photo['resource-id'])) {
                        $hash = $photo['resource-id'];
                } else {
                        $hash = self::newResource();