From 8d0cbeab388b1a7f3eb426f71c97ff690496005d Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 19 Apr 2018 23:37:47 -0700 Subject: better fix to permisisons.php - just cast to int. That's exactly what we want. --- include/permissions.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'include/permissions.php') diff --git a/include/permissions.php b/include/permissions.php index 591fe7ce5..185d37b6a 100644 --- a/include/permissions.php +++ b/include/permissions.php @@ -46,10 +46,7 @@ function get_all_perms($uid, $observer_xchan, $internal_use = true) { // First find out what the channel owner declared permissions to be. - $channel_perm = \Zotlabs\Access\PermissionLimits::Get($uid,$perm_name); - if($channel_perm === false) { - $channel_perm = 0; - } + $channel_perm = intval(\Zotlabs\Access\PermissionLimits::Get($uid,$perm_name)); if(! $channel_checked) { $r = q("select * from channel where channel_id = %d limit 1", -- cgit v1.2.3