From: Roland Häder Date: Sat, 23 Feb 2008 10:44:39 +0000 (+0000) Subject: fix for session X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=c9042771aa7909d5fb9b4031372e22f081654ffd fix for session --- 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; }