X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FPhoto.php;h=4a9e11c55472deb4123d375dbcdf8c80284185ef;hb=e0a763b07f12ecb7389925100959f9ac6ebe85a8;hp=a9b4c0fb736fd139957518921de46f03cac308d5;hpb=53c7e50f1242eea39209738c9388c473e24eb7b5;p=friendica.git diff --git a/src/Model/Photo.php b/src/Model/Photo.php index a9b4c0fb73..4a9e11c554 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -16,8 +16,6 @@ use Friendica\Util\DateTimeFormat; use Friendica\Util\Network; use Friendica\Util\Security; -require_once 'include/dba.php'; - /** * Class to handle photo dabatase table */ @@ -97,7 +95,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();