mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Allox usr_mail to be null
This commit is contained in:
@@ -572,7 +572,7 @@ class module_admin_route_users_edit
|
|||||||
|
|
||||||
$parm = $request->get_parms_from_serialized_datas($infos, 'user_infos');
|
$parm = $request->get_parms_from_serialized_datas($infos, 'user_infos');
|
||||||
|
|
||||||
if (!mail::validateEmail($parm['email']))
|
if ($parm['email'] && !mail::validateEmail($parm['email']))
|
||||||
throw new Exception_InvalidArgument(_('Email addess is not valid'));
|
throw new Exception_InvalidArgument(_('Email addess is not valid'));
|
||||||
|
|
||||||
$user->set_firstname($parm['first_name'])
|
$user->set_firstname($parm['first_name'])
|
||||||
|
Reference in New Issue
Block a user