Wrong constant fixed
[mailer.git] / inc / functions.php
index 9a9ea0dfc89080b04fd6617f1cbed14bed1afa8b..25aa0e93360b1355be31ad0aba7a695c05452ee2 100644 (file)
@@ -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_LANG;
        }
        return $ret;
 }