From c2a001eea4fddc112b1f6d767914404d69cf8b5e Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Wed, 4 May 2011 15:54:25 +0200 Subject: [PATCH] Fixed PHP Notices issue with gen_lang variable --- src/include/functions_common.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/include/functions_common.php b/src/include/functions_common.php index 0f8ffaf..eef4a76 100644 --- a/src/include/functions_common.php +++ b/src/include/functions_common.php @@ -838,6 +838,11 @@ function InitConfigurationValues() } // --- Language Handling + + // Set gen language default + $content['gen_lang'] = GetConfigSetting("ViewDefaultLanguage", "en", CFGLEVEL_GLOBAL); + + // Now check for current used language if ( isset($_SESSION['CUSTOM_LANG']) && VerifyLanguage($_SESSION['CUSTOM_LANG']) ) { $content['user_lang'] = $_SESSION['CUSTOM_LANG'];