From bf054a839d4f3c3a1176a31ca78986cb70ae1a7d Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 7 Jul 2020 15:41:16 +0200 Subject: [PATCH] LSformElement :: password: fix PHP warning --- src/includes/class/class.LSformElement_password.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/class/class.LSformElement_password.php b/src/includes/class/class.LSformElement_password.php index f8166a7f..cdf3d923 100644 --- a/src/includes/class/class.LSformElement_password.php +++ b/src/includes/class/class.LSformElement_password.php @@ -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;