From 7d993ea51daa87ea5145d86a1fcb755f9736409b Mon Sep 17 00:00:00 2001 From: quenenni Date: Thu, 17 Aug 2017 16:38:09 +0200 Subject: [PATCH] =?UTF-8?q?bug=20-=20n'acceptait=20pas=20un=20mdp=20vide?= =?UTF-8?q?=20quand=20on=20=C3=A9ditait=20un=20mail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bureau/admin/mail_doedit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bureau/admin/mail_doedit.php b/bureau/admin/mail_doedit.php index d1f02477..1336fb32 100644 --- a/bureau/admin/mail_doedit.php +++ b/bureau/admin/mail_doedit.php @@ -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(); }