Skip to content
Permalink
Browse files

Fix using php 5.4 array [ ]

  • Loading branch information...
vanquang9387 committed Oct 19, 2015
1 parent 8b3bba3 commit 13132cd113aaea7b5a0372496f6ff3117d437832
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Utility/Validation.php
@@ -1031,7 +1031,7 @@ public static function uploadError($check, $allowNoFile = false) {
$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;

0 comments on commit 13132cd

Please sign in to comment.
You can’t perform that action at this time.