LSformElement :: password: fix PHP warning

This commit is contained in:
Benjamin Renard 2020-07-07 15:41:16 +02:00
parent f8f24df2dd
commit bf054a839d

View file

@ -87,7 +87,7 @@ class LSformElement_password extends LSformElement {
}
}
if ($this -> verifyPassword($return[$this -> name][0]) || (empty($return[$this -> name][0]) && empty($val))) {
if (($return[$this -> name] && $this -> verifyPassword($return[$this -> name][0])) || ((empty($return[$this -> name][0])) && empty($val))) {
self :: log_debug('getPostData('.$this -> name.'): no change');
unset($return[$this -> name]);
$this -> form -> _notUpdate[$this -> name] = true;