From: Michael Date: Mon, 9 Mar 2020 08:59:56 +0000 (+0000) Subject: Fix fatal error (TypeError) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c514da173837b8449ef99100b2b0e21d659f2aaf;p=friendica.git Fix fatal error (TypeError) --- diff --git a/src/Model/Photo.php b/src/Model/Photo.php index 301231f6bd..2ac95e952d 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -150,7 +150,7 @@ class Photo $uid = $r["uid"]; - $accessible = $uid ? DI::pConfig()->get($uid, 'system', 'accessible-photos') : false; + $accessible = $uid ? (bool)DI::pConfig()->get($uid, 'system', 'accessible-photos', false) : false; $sql_acl = Security::getPermissionsSQLByUserId($uid, $accessible);