public static function append($module, $setting, $value) { if (is_array($setting)) { foreach ($setting as $key => $subval) { $result = PHPWS_Settings::append($module, $key, $subval); if (!$result) { return false; } } return true; } elseif (isset($GLOBALS['PHPWS_Settings'][$module][$setting]) && !is_array($GLOBALS['PHPWS_Settings'][$module][$setting])) { return false; } $GLOBALS['PHPWS_Settings'][$module][$setting][] = $value; return true; }