Update base.php

This commit is contained in:
Namhyeon Go 2019-06-01 19:32:01 +09:00 committed by GitHub
parent 25f679f062
commit 5ccabbc147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,7 +280,7 @@ if(!check_function_exists("get_value_in_object")) {
if(!check_function_exists("check_array_length")) {
function check_array_length($arr, $len) {
return (count($arr) - $len);
return ((!is_array($arr) ? -1 : count($arr)) - $len);
}
}