Fixed issue 203, user doesn't show in active/inactive if first name is ---.

This commit is contained in:
Loic d'Anterroches 2009-05-07 15:07:02 +02:00
parent 358a774017
commit d216e21858

View File

@ -180,9 +180,12 @@ class IDF_Form_Admin_UserUpdate extends Pluf_Form
{
$first_name = trim($this->cleaned_data['first_name']);
if ($first_name == mb_strtoupper($first_name)) {
return mb_convert_case(mb_strtolower($first_name),
$first_name = mb_convert_case(mb_strtolower($first_name),
MB_CASE_TITLE, 'UTF-8');
}
if ($first_name == '---') {
throw new Pluf_Form_Invalid(__('--- is not a valid first name.'));
}
return $first_name;
}