]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Photo.php
Unescape admin warning text
[friendica.git] / src / Model / Photo.php
index a9b4c0fb736fd139957518921de46f03cac308d5..4a9e11c55472deb4123d375dbcdf8c80284185ef 100644 (file)
@@ -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();