diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-09-02 17:32:40 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-09-02 17:32:40 +0000 |
commit | 273695dba8924f3191fa20477c98688e9b70a895 (patch) | |
tree | bbd0ea5e17f87ede11b842c3f1eaae2f998b2e75 /phpBB/includes/acp | |
parent | cda8083ba73d8884780a3e802b32b0441d2170b0 (diff) | |
download | forums-273695dba8924f3191fa20477c98688e9b70a895.tar forums-273695dba8924f3191fa20477c98688e9b70a895.tar.gz forums-273695dba8924f3191fa20477c98688e9b70a895.tar.bz2 forums-273695dba8924f3191fa20477c98688e9b70a895.tar.xz forums-273695dba8924f3191fa20477c98688e9b70a895.zip |
away with debug code. :o
git-svn-id: file:///svn/phpbb/trunk@8076 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r-- | phpBB/includes/acp/acp_permissions.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/phpBB/includes/acp/acp_permissions.php b/phpBB/includes/acp/acp_permissions.php index d344656ca3..cc64d84dfe 100644 --- a/phpBB/includes/acp/acp_permissions.php +++ b/phpBB/includes/acp/acp_permissions.php @@ -612,16 +612,14 @@ class acp_permissions list($ug_id, ) = each($psubmit); list($forum_id, ) = each($psubmit[$ug_id]); - $_POST['setting'] = 1; - // We obtain and check $_POST['setting'][$ug_id][$forum_id] directly and not using request_var() because request_var() - // currently does not support the amount of dimensions required. ;) - // $auth_settings = request_var('setting', array(0 => array(0 => array('' => 0)))); - if (empty($_POST['setting']) || empty($_POST['setting'][$ug_id]) || empty($_POST['setting'][$ug_id][$forum_id]) || !is_array($_POST['setting'][$ug_id][$forum_id])) { trigger_error('WRONG_PERMISSION_SETTING_FORMAT', E_USER_WARNING); } + // We obtain and check $_POST['setting'][$ug_id][$forum_id] directly and not using request_var() because request_var() + // currently does not support the amount of dimensions required. ;) + // $auth_settings = request_var('setting', array(0 => array(0 => array('' => 0)))); $auth_settings = array_map('intval', $_POST['setting'][$ug_id][$forum_id]); // Do we have a role we want to set? |