Browse Source

made the define_groups function play nice on hhvm

pull/40/head
Jayme Brereton 8 years ago
parent
commit
fa2e6cfa80
  1. 8
      inc/functions.php

8
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']);
}

Loading…
Cancel
Save