Update database.php

This commit is contained in:
Namhyeon Go 2019-04-01 17:30:02 +09:00 committed by GitHub
parent 5c0dc3cafc
commit ca411afe8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,7 @@ if(!check_function_exists("exec_db_fetch_all")) {
$count_sql = sprintf("select count(*) as cnt from (%s) a", $sql);
$count_data = exec_db_fetch($count_sql);
$length = get_value_in_array("cnt", $count_data, $length);
} elseif(array_key_equals("do_count", $options, "function_count")) {
} elseif(array_key_equals("do_count", $options, "fn_count")) {
$length = count($rows);
} else {
$response = $rows;