From d77c04f015cc1dd163c14e04773d5a6a05966e34 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 1 Mar 2010 11:33:55 +0000 Subject: =?UTF-8?q?-=20Patch=20#704158=20by=20marvil07,=20mikeytown2,=20G?= =?UTF-8?q?=C3=A1bor=20Hojtsy:=20fixed=20warning.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/user/user.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index 21398fa0b..bd9b44fdc 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -3098,7 +3098,7 @@ function theme_user_signature($variables) { */ function user_preferred_language($account, $default = NULL) { $language_list = language_list(); - if ($account->language && isset($language_list[$account->language])) { + if (!empty($account->language) && isset($language_list[$account->language])) { return $language_list[$account->language]; } else { -- cgit v1.2.3