Update database.php
This commit is contained in:
parent
36ce21f0b9
commit
105073e0ec
|
@ -243,6 +243,15 @@ if(!check_function_exists("exec_db_fetch_all")) {
|
||||||
$is_not_countable = true;
|
$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) {
|
if(!$is_not_countable) {
|
||||||
$response = array(
|
$response = array(
|
||||||
"length" => $_cnt, // compatible with 1.4 or lower
|
"length" => $_cnt, // compatible with 1.4 or lower
|
||||||
|
|
Loading…
Reference in New Issue
Block a user