mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix using php 5.4 array [ ]
This commit is contained in:
parent
8b3bba3341
commit
13132cd113
1 changed files with 1 additions and 1 deletions
|
@ -1031,7 +1031,7 @@ class Validation {
|
|||
$check = $check['error'];
|
||||
}
|
||||
if ($allowNoFile) {
|
||||
return in_array((int)$check, [UPLOAD_ERR_OK, UPLOAD_ERR_NO_FILE], true);
|
||||
return in_array((int)$check, array(UPLOAD_ERR_OK, UPLOAD_ERR_NO_FILE), true);
|
||||
}
|
||||
|
||||
return (int)$check === UPLOAD_ERR_OK;
|
||||
|
|
Loading…
Reference in a new issue