From c514da173837b8449ef99100b2b0e21d659f2aaf Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 9 Mar 2020 08:59:56 +0000 Subject: [PATCH] Fix fatal error (TypeError) --- src/Model/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5