Commit d77c04f0 authored by Dries's avatar Dries
Browse files

- Patch #704158 by marvil07, mikeytown2, Gábor Hojtsy: fixed warning.

parent 13704b8f
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment