diff options
-rw-r--r-- | engine/lib/languages.php | 5 |
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))
|