From 5ccabbc1478c796fe46153cd6be4f0a315bc9c46 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sat, 1 Jun 2019 19:32:01 +0900 Subject: [PATCH] Update base.php --- system/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/base.php b/system/base.php index eb48eb7..700277a 100644 --- a/system/base.php +++ b/system/base.php @@ -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); } }