Merge pull request #8390 from annando/fix-fatal
Fix fatal error (TypeError)
This commit is contained in:
commit
50c2cb6535
|
@ -150,7 +150,7 @@ class Photo
|
||||||
|
|
||||||
$uid = $r["uid"];
|
$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);
|
$sql_acl = Security::getPermissionsSQLByUserId($uid, $accessible);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user