summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/admin_acl.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/admin_acl.php b/inc/admin_acl.php
index c8ac5755d..d07cf4550 100644
--- a/inc/admin_acl.php
+++ b/inc/admin_acl.php
@@ -58,13 +58,13 @@ function admin_acl_handler(){
* @todo can this be combined with auth_aclcheck to avoid duplicate code?
* @author Frank Schubert <frank@schokilade.de>
*/
-function get_acl_config($ID){
+function get_acl_config($id){
global $AUTH_ACL;
$acl_config=array();
// match exact name
- $matches = preg_grep('/^'.$ID.'\s+.*/',$AUTH_ACL);
+ $matches = preg_grep('/^'.$id.'\s+.*/',$AUTH_ACL);
if(count($matches)){
foreach($matches as $match){
$match = preg_replace('/#.*$/','',$match); //ignore comments
@@ -76,8 +76,8 @@ function get_acl_config($ID){
$specific_found=array();
// match ns
- if(($ID=getNS($ID)) !== false){
- $matches = preg_grep('/^'.$ID.':\*\s+.*/',$AUTH_ACL);
+ while(($id=getNS($id)) !== false){
+ $matches = preg_grep('/^'.$id.':\*\s+.*/',$AUTH_ACL);
if(count($matches)){
foreach($matches as $match){
$match = preg_replace('/#.*$/','',$match); //ignore comments