Update database.php

This commit is contained in:
Namhyeon Go 2019-10-21 11:03:19 +09:00 committed by GitHub
parent 36ce21f0b9
commit 105073e0ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,6 +243,15 @@ if(!check_function_exists("exec_db_fetch_all")) {
$is_not_countable = true;
}
// 1.6 or above
$_rows = array();
if(array_key_equals("getvalues", $options, true)) {
foreach($rows as $row) {
$_rows[] = array_values($row);
}
$rows = $_rows;
}
if(!$is_not_countable) {
$response = array(
"length" => $_cnt, // compatible with 1.4 or lower