aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-28 22:24:05 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-28 22:24:05 +0000
commitecc56d64af60e120d58f148dce46a1b1b1b039cc (patch)
tree0e40afdc91d7bdcb19baee3ab3367d39916f2f48 /engine
parent20cae639af33cabf98f8b340a6f5c5e121e9787e (diff)
downloadelgg-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')
-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))