Skip to content

Commit dbf4a1b

Browse files
author
Christian Blanquera
committed
arrat to string fix
1 parent 91b06e9 commit dbf4a1b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Model/Validator.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ public function getCreateErrors(array $data, array &$errors = [], $fieldset = nu
9898
is_array($data[$name])
9999
&& empty($data[$name])
100100
)
101-
|| !strlen('' . $data[$name])
101+
|| (
102+
!is_array($data[$name])
103+
&& !strlen('' . $data[$name])
104+
)
102105
)
103106
) {
104107
$errors[$name] = $validation['message'];

0 commit comments

Comments
 (0)