Commit 21113a0b by Scott

Fix PHP notice on user fields page

Fixes #850
parent 7dd2d46d
...@@ -1254,7 +1254,7 @@ function qa_user_userfield_label($userfield) ...@@ -1254,7 +1254,7 @@ function qa_user_userfield_label($userfield)
'website' => 'users/website', 'website' => 'users/website',
); );
if (isset($defaultlabels[$userfield['title']])) if (isset($userfield['title']) && isset($defaultlabels[$userfield['title']]))
return qa_lang($defaultlabels[$userfield['title']]); return qa_lang($defaultlabels[$userfield['title']]);
} }
......
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