Update database.php

This commit is contained in:
Namhyeon Go 2020-01-09 19:34:34 +09:00 committed by GitHub
parent b70dd192c3
commit 944b14662d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,13 +334,13 @@ if(!check_function_exists("get_bind_to_sql_insert")) {
$_bind_V[$k] = $v; $_bind_V[$k] = $v;
} }
} }
$sql = get_bind_to_sql_select($tablename, $_bind_K, array( $_sql = get_bind_to_sql_select($tablename, $_bind_K, array(
"getcnt" => true, "getcnt" => true,
"setwheres" => $setnotwhere "setwheres" => $setnotwhere
)); ));
$rows = exec_db_fetch_all($sql, $du_bind); $_rows = exec_db_fetch_all($sql, $_bind_K);
foreach($rows as $row) { foreach($_rows as $_row) {
$num_duplicates += intval($row['cnt']); $num_duplicates += intval($_row['cnt']);
} }
// make statements // make statements