LSformElement::password : consider password have not been change if new value and old value is empty

This commit is contained in:
Benjamin Renard 2011-05-23 12:04:04 +02:00
parent c176249848
commit 80456ca403

View file

@ -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;