]> git.mxchange.org Git - friendica.git/commitdiff
Fix fatal error (TypeError)
authorMichael <heluecht@pirati.ca>
Mon, 9 Mar 2020 08:59:56 +0000 (08:59 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 9 Mar 2020 08:59:56 +0000 (08:59 +0000)
src/Model/Photo.php

index 301231f6bdd9378cd4815f923552a3faaf24c101..2ac95e952dd8165a42f228694b5cb80bcad7bf25 100644 (file)
@@ -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);