mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 13:30:25 +02:00
Rats! Out of Bug Spray... Still have a handy can of Superfluous Function-call Be-gone!
// TODO: Pick up more Bug Spray! git-svn-id: file:///svn/phpbb/trunk@5459 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -251,7 +251,7 @@ class p_master
|
||||
}
|
||||
|
||||
$is_auth = false;
|
||||
eval('$is_auth = (int) (' . preg_replace(array('#acl_([a-z_]+)(,\$id)?#', '#\$id#', '#cfg_([a-z_]+)#'), array('(int) $auth->acl_get("\\1"\\2)', '(int) $this->acl_forup_id', '(int) $config["\\1"]'), trim($module_auth)) . ');');
|
||||
eval('$is_auth = (int) (' . preg_replace(array('#acl_([a-z_]+)(,\$id)?#', '#\$id#', '#cfg_([a-z_]+)#'), array('(int) $auth->acl_get("\\1"\\2)', '(int) $this->acl_forup_id', '(int) $config["\\1"]'), $module_auth) . ');');
|
||||
|
||||
return $is_auth;
|
||||
}
|
||||
|
Reference in New Issue
Block a user