bug - n'acceptait pas un mdp vide quand on éditait un mail

This commit is contained in:
quenenni 2017-08-17 16:38:09 +02:00
parent 956f6fc2c6
commit 7d993ea51d
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ if (!$res=$mail->get_details($mail_id)) {
include ("mail_edit.php");
exit();
} else {
if (!$mail->set_passwd($mail_id,$pass,($islocal == 1?false:true))) { /* SET THE PASSWORD */
$canbeempty = ($islocal != 1 || ($islocal == 1 && !$new_account))?true:false;
if (!$mail->set_passwd($mail_id,$pass,$canbeempty)) { /* SET THE PASSWORD */
include ("mail_edit.php");
exit();
}