From 5bea5c96bcbaedd8444bb4e96ad636fb3b2ab0cc Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 24 Jul 2008 15:45:12 +0000 Subject: [PATCH] Fixed undefined config problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12030 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index d648d588d..4354fdaea 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -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"; -- 2.30.2