made the define_groups function play nice on hhvm
This commit is contained in:
parent
97d1f2790c
commit
fa2e6cfa80
@ -328,8 +328,12 @@ function verbose_error_handler($errno, $errstr, $errfile, $errline) {
|
||||
function define_groups() {
|
||||
global $config;
|
||||
|
||||
foreach ($config['mod']['groups'] as $group_value => $group_name)
|
||||
defined($group_name) or define($group_name, $group_value, true);
|
||||
foreach ($config['mod']['groups'] as $group_value => $group_name) {
|
||||
$group_name = strtoupper($group_name);
|
||||
if(!defined($group_name)) {
|
||||
define($group_name, $group_value, true);
|
||||
}
|
||||
}
|
||||
|
||||
ksort($config['mod']['groups']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user