From 1f35d9432ff6391c183fe9e268cbf3b76ac8dd0d Mon Sep 17 00:00:00 2001 From: zottel Date: Thu, 6 Nov 2014 17:24:05 +0100 Subject: don't overwrite $x (contains import_xchan result) with role permissions --- include/zot.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/zot.php b/include/zot.php index 9f22bc30b..bdc1f607f 100644 --- a/include/zot.php +++ b/include/zot.php @@ -441,9 +441,9 @@ function zot_refresh($them,$channel = null, $force = false) { else { $role = get_pconfig($channel['channel_id'],'system','permissions_role'); if($role) { - $x = get_role_perms($role); - if($x['perms_auto']) - $default_perms = $x['perms_accept']; + $xx = get_role_perms($role); + if($xx['perms_auto']) + $default_perms = $xx['perms_accept']; } if(! $default_perms) $default_perms = intval(get_pconfig($channel['channel_id'],'system','autoperms')); -- cgit v1.2.3