Update base.php
This commit is contained in:
parent
25f679f062
commit
5ccabbc147
|
@ -280,7 +280,7 @@ if(!check_function_exists("get_value_in_object")) {
|
||||||
|
|
||||||
if(!check_function_exists("check_array_length")) {
|
if(!check_function_exists("check_array_length")) {
|
||||||
function check_array_length($arr, $len) {
|
function check_array_length($arr, $len) {
|
||||||
return (count($arr) - $len);
|
return ((!is_array($arr) ? -1 : count($arr)) - $len);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user