diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-28 22:24:05 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-28 22:24:05 +0000 |
commit | ecc56d64af60e120d58f148dce46a1b1b1b039cc (patch) | |
tree | 0e40afdc91d7bdcb19baee3ab3367d39916f2f48 /engine/lib | |
parent | 20cae639af33cabf98f8b340a6f5c5e121e9787e (diff) | |
download | elgg-ecc56d64af60e120d58f148dce46a1b1b1b039cc.tar.gz elgg-ecc56d64af60e120d58f148dce46a1b1b1b039cc.tar.bz2 |
Closes #824: $language is initialised
git-svn-id: https://code.elgg.org/elgg/trunk@3001 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-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))
|