Skip to content

Commit

Permalink
Merge pull request #3734 from BaptisteDaSilva/patch-1
Browse files Browse the repository at this point in the history
Update main.functions.php
  • Loading branch information
nilsteampassnet committed May 24, 2023
2 parents c0b1630 + c5cbba5 commit 5f3cb59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/main.functions.php
Expand Up @@ -4152,7 +4152,7 @@ function validateDataFields(
$length = preg_replace('/[^0-9]/', '', $type);
$type = explode('(', $type)[0];

if (array_key_exists($field, $dataFields) === true && in_array($type, ['int', 'tinyint', 'smallint', 'text', 'bigint', 'float', 'double', 'varchar']) === true && is_array($dataFields[$field]) === false) {
if (array_key_exists($field, $dataFields) === true && in_array($type, ['int', 'tinyint', 'smallint', 'bigint', 'float', 'double', 'varchar']) === true && is_array($dataFields[$field]) === false) {
if (strlen((string) $dataFields[$field]) > $length) {
return [
'state' => false,
Expand Down Expand Up @@ -4189,4 +4189,4 @@ function filterVarBack(string $string): string
}

return $string;
}
}

0 comments on commit 5f3cb59

Please sign in to comment.