Fixed PHP Notices issue with gen_lang variable

This commit is contained in:
Andre Lorbach 2011-05-04 15:54:25 +02:00
parent 860f041258
commit c2a001eea4

View File

@ -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'];