Update database.php

This commit is contained in:
Namhyeon Go 2019-07-14 14:11:19 +09:00 committed by GitHub
parent f0d7b5af80
commit ef49d3e940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,7 +232,7 @@ if(!check_function_exists("exec_db_fetch_all")) {
if(array_key_equals("do_count", $options, true)) {
$_sql = sprintf("select count(*) as cnt from (%s) a", get_db_binded_sql($sql, $bind));
$_data = exec_db_fetch($_sql);
$_cnt = get_value_in_array("cnt", $_data, $size);
$_cnt = get_value_in_array("cnt", $_data, $_cnt);
} elseif(array_key_equals("do_count", $options, "count")) {
$_cnt = count($rows);
} elseif(array_key_equals("do_count", $options, "PDOStatement::rowCount")) {