From ecc56d64af60e120d58f148dce46a1b1b1b039cc Mon Sep 17 00:00:00 2001 From: marcus Date: Sat, 28 Feb 2009 22:24:05 +0000 Subject: Closes #824: $language is initialised git-svn-id: https://code.elgg.org/elgg/trunk@3001 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/languages.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engine/lib') 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)) -- cgit v1.2.3