diff options
author | Andrew Dolgov <[email protected]> | 2021-02-06 00:12:15 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-06 00:12:15 +0300 |
commit | 6e774a58fe6c509e2cd16d222ed414edc9f10b17 (patch) | |
tree | b6a6d054677596b3ef79e806a44f7f8931dd84d6 /include/functions.php | |
parent | 403dca154c6b539de221f9e16174a0fdd0a1e896 (diff) |
more php8 fixes mostly related to login
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 2 |
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') { |