projects
/
mailer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Wrong constant fixed
[mailer.git]
/
inc
/
functions.php
diff --git
a/inc/functions.php
b/inc/functions.php
index 9a9ea0dfc89080b04fd6617f1cbed14bed1afa8b..25aa0e93360b1355be31ad0aba7a695c05452ee2 100644
(file)
--- 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_LANG;
}
return $ret;
}