LSformElement :: password: fix typo

This commit is contained in:
Benjamin Renard 2020-07-07 12:44:18 +02:00
parent f0bb4f585c
commit 0b180e63b0

View file

@ -66,7 +66,7 @@ class LSformElement_password extends LSformElement {
$confirm_data = self :: getData($_POST, $this -> name . '_confirm');
$confirmed = false;
if (!is_array($confirm_data)) {
if (!isset($return[$this -> name]) || empty($return[$this -> name]) || empty($return[$this -> name][0])) {
if (!isset($return[$this -> name]) || empty($return[$this -> name]) || empty($return[$this -> name][0])) {
self :: log_debug('getPostData('.$this -> name.'): no confirm data, but empty password provided => confirmed');
$confirmed = true;
}