Skip to content

Commit

Permalink
Fix #292
Browse files Browse the repository at this point in the history
  • Loading branch information
filisko committed Feb 13, 2020
1 parent 26de1a5 commit de54b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gump.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public function validate(array $input, array $ruleset, $rules_delimiter='|', $pa
$result = call_user_func(self::$validation_methods[$rule], $field, $input, $param);

if($result === false) {
if (array_search($result['field'], array_column($this->errors, 'field')) === false) {
if (array_search($field, array_column($this->errors, 'field')) === false) {
$this->errors[] = array(
'field' => $field,
'value' => $input[$field],
Expand Down

0 comments on commit de54b48

Please sign in to comment.