Update database.php
This commit is contained in:
parent
cfb58f3b29
commit
299216033c
|
@ -232,7 +232,7 @@ if(!check_function_exists("exec_db_fetch_all")) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(array_key_equals("do_count", $options, true)) {
|
if(array_key_equals("do_count", $options, true)) {
|
||||||
$count_sql = sprintf("select count(*) as cnt from (%s) a", $sql);
|
$count_sql = sprintf("select count(*) as cnt from (%s) a", get_db_binded_sql($sql, $bind));
|
||||||
$count_data = exec_db_fetch($count_sql);
|
$count_data = exec_db_fetch($count_sql);
|
||||||
$length = get_value_in_array("cnt", $count_data, $length);
|
$length = get_value_in_array("cnt", $count_data, $length);
|
||||||
} elseif(array_key_equals("do_count", $options, "fn_count")) {
|
} elseif(array_key_equals("do_count", $options, "fn_count")) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user