From 29796584f7d62fefae6fc77db8490cef214c323a Mon Sep 17 00:00:00 2001 From: Anonymous Contributor Date: Wed, 23 Aug 2023 18:16:35 +0200 Subject: [PATCH] Check if "required" parameter is set --- app/FormValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/FormValidator.php b/app/FormValidator.php index 5ebb1c5..9f563f0 100644 --- a/app/FormValidator.php +++ b/app/FormValidator.php @@ -23,7 +23,7 @@ class FormValidator { return false; } } - else if($params['required']) { + else if(isset($params['required']) && $params['required']) { return false; } }