Update database.php
This commit is contained in:
parent
a653aef496
commit
b6ddcf38e7
|
@ -253,11 +253,12 @@ if(!check_function_exists("exec_db_fetch_all")) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$is_not_countable) {
|
if(!$is_not_countable) {
|
||||||
$response = array(
|
$response = array();
|
||||||
"length" => $_cnt, // compatible with 1.4 or lower
|
if(get_old_version() == "1.4") { // compatible 1.4 or below
|
||||||
"cnt" => $_cnt,
|
$response['length'] = $_cnt;
|
||||||
"data" => $rows,
|
}
|
||||||
);
|
$response['cnt'] = $_cnt;
|
||||||
|
$response['data'] = $rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
|
@ -346,7 +347,7 @@ if(!check_function_exists("get_bind_to_sql_where")) {
|
||||||
$sp = "";
|
$sp = "";
|
||||||
|
|
||||||
$excludes = get_value_in_array("excludes", $options, array());
|
$excludes = get_value_in_array("excludes", $options, array());
|
||||||
if(get_old_version() == "1.5") {
|
if(get_old_version() == "1.5") { // compatible 1.5 or below
|
||||||
$excludes = $options;
|
$excludes = $options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -753,4 +754,3 @@ if(!check_function_exists("json_decode_to_assoc")) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user