From a5aff20db440a7b7450addb6acab0944119fac1f Mon Sep 17 00:00:00 2001 From: dmi3yy Date: Fri, 23 Mar 2018 16:18:24 +0200 Subject: [PATCH] formlister fix typo --- assets/snippets/FormLister/core/FormLister.abstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/snippets/FormLister/core/FormLister.abstract.php b/assets/snippets/FormLister/core/FormLister.abstract.php index aff37cefcb..8d491bbc4a 100644 --- a/assets/snippets/FormLister/core/FormLister.abstract.php +++ b/assets/snippets/FormLister/core/FormLister.abstract.php @@ -870,7 +870,7 @@ public function renderMessages() 'messagesOuterTpl', 'messagesSplitter' ); - $renderErrors = strpos($wrapper, '[+errors+]') !== false || strpos($wrapper, ['+required+']) !== false; + $renderErrors = strpos($wrapper, '[+errors+]') !== false || strpos($wrapper, '[+required+]') !== false; if ($renderErrors) { $formErrors = array_filter($this->getFormData('errors')); $requiredMessages = $errorMessages = array();