Code

Updated timezone class
[gosa.git] / gosa-core / include / functions.inc
index d648d588dbe6e03b38a59feb6c37f4790ff2cf44..4354fdaea3094d60b6bf72a55b31b7e24029ee0c 100644 (file)
@@ -192,7 +192,7 @@ function get_browser_language()
   }
 
   /* Check for global language settings in gosa.conf */
-  if ($config->get_cfg_value('lang') != ""){
+  if (isset ($config) && $config->get_cfg_value('lang') != ""){
     $lang = $config->get_cfg_value('lang');
     if(!preg_match("/utf/i",$lang)){
       $lang .= ".UTF-8";