From 27018439c74b006eb348207480638eecbcc0552c Mon Sep 17 00:00:00 2001 From: quix0r Date: Sat, 23 Feb 2008 10:44:39 +0000 Subject: [PATCH] fix for session --- inc/functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/functions.php b/inc/functions.php index 9a9ea0dfc8..5027229b64 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -660,6 +660,9 @@ function GET_LANGUAGE() { } elseif (!isSessionVariableSet('mx_lang')) { // Return stored value from cookie $ret = get_session('mx_lang'); + + // Fixes a warning before the session has the mx_lang constant + if (empty($ret)) $ret = DEFAULT_LANGUAGE; } return $ret; } -- 2.39.5