diff options
| author | Jayme Brereton <jayme@limesquare.com.au> | 2015-04-05 20:14:58 +0930 |
|---|---|---|
| committer | Jayme Brereton <jayme@limesquare.com.au> | 2015-04-05 20:14:58 +0930 |
| commit | fa2e6cfa800462a6913f53d5b0843d2c5070069f (patch) | |
| tree | 48132b8e68034d794a5251670f9c250bca431030 /inc | |
| parent | 97d1f2790c52d608774c7e8ea061433059f63ea6 (diff) | |
made the define_groups function play nice on hhvm
Diffstat (limited to 'inc')
| -rwxr-xr-x | inc/functions.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php index 7ed3af5a..e1d54590 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -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']); } |
