diff options
Diffstat (limited to 'include/channel.php')
-rw-r--r-- | include/channel.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/channel.php b/include/channel.php index 1a6508803..0defc3863 100644 --- a/include/channel.php +++ b/include/channel.php @@ -1625,13 +1625,13 @@ function notifications_on($channel_id,$value) { function get_channel_default_perms($uid) { - $r = q("select abook_my_perms from abook where abook_channel = %d and abook_self = 1 limit 1", + $r = q("select abook_xchan from abook where abook_channel = %d and abook_self = 1 limit 1", intval($uid) ); if($r) - return $r[0]['abook_my_perms']; + return load_abconfig($uid,$r[0]['abook_xchan'],'my_perms'); - return 0; + return array(); } |