summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 0ec0ba30b..2db559a92 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -148,7 +148,7 @@
$lang = _TRANSLATION_OVERRIDE_DEFAULT;
}
- if ($_SESSION["uid"] && get_schema_version() >= 120) {
+ if (!empty($_SESSION["uid"]) && get_schema_version() >= 120) {
$pref_lang = get_pref("USER_LANGUAGE", $_SESSION["uid"]);
if ($pref_lang && $pref_lang != 'auto') {