aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/languages.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/languages.php')
-rw-r--r--engine/lib/languages.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/languages.php b/engine/lib/languages.php
index bf6f204f0..5f91aceec 100644
--- a/engine/lib/languages.php
+++ b/engine/lib/languages.php
@@ -75,9 +75,10 @@
global $CONFIG;
- $user = get_loggedin_user();
+ $user = get_loggedin_user();
+ $language = false;
- if ((empty($language)) && ($user) && ($user->language))
+ if (($user) && ($user->language))
$language = $user->language;
if ((!$language) && ($CONFIG->language))