summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorJayme Brereton <jayme@limesquare.com.au>2015-04-05 20:14:58 +0930
committerJayme Brereton <jayme@limesquare.com.au>2015-04-05 20:14:58 +0930
commitfa2e6cfa800462a6913f53d5b0843d2c5070069f (patch)
tree48132b8e68034d794a5251670f9c250bca431030 /inc
parent97d1f2790c52d608774c7e8ea061433059f63ea6 (diff)
made the define_groups function play nice on hhvm
Diffstat (limited to 'inc')
-rwxr-xr-xinc/functions.php8
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']);
}