use Friendica\Util\Network;
use Friendica\Util\Security;
-require_once 'include/dba.php';
-
/**
* Class to handle photo dabatase table
*/
$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();