From c9042771aa7909d5fb9b4031372e22f081654ffd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= 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