Skip to content

Commit

Permalink
formlister fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmi3yy committed Mar 23, 2018
1 parent d5e0931 commit a5aff20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/snippets/FormLister/core/FormLister.abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a5aff20

Please sign in to comment.