From 80456ca40394f8b1dc0d2aad160493a5e4842caa Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 23 May 2011 12:04:04 +0200 Subject: [PATCH] LSformElement::password : consider password have not been change if new value and old value is empty --- public_html/includes/class/class.LSformElement_password.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/includes/class/class.LSformElement_password.php b/public_html/includes/class/class.LSformElement_password.php index b2543156..c74d2ed0 100644 --- a/public_html/includes/class/class.LSformElement_password.php +++ b/public_html/includes/class/class.LSformElement_password.php @@ -60,7 +60,7 @@ class LSformElement_password extends LSformElement { return true; } - if ($this -> verifyPassword($return[$this -> name][0])) { + if ($this -> verifyPassword($return[$this -> name][0]) || (empty($return[$this -> name][0]) && empty($val))) { LSdebug("Password : no change"); unset($return[$this -> name]); $this -> form -> _notUpdate[$this -> name] == true;