Update database.php

This commit is contained in:
Namhyeon Go 2019-10-04 10:28:43 +09:00 committed by GitHub
parent 7a1c66eba5
commit a932e44eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -617,7 +617,7 @@ if(!check_function_exists("get_bind_to_sql_update")) {
if(!check_function_exists("get_bind_to_sql_delete")) {
function get_bind_to_sql_delete($tablename, $bind, $options=array()) {
$sql = "delete from %s where" . get_db_binded_sql(get_bind_to_sql_where($bind, $options), $bind);
$sql = sprintf("delete from %s where %s", $tablename, get_db_binded_sql(get_bind_to_sql_where($bind, $options), $bind));
return $sql;
}
}