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();