Update database.php

This commit is contained in:
Namhyeon Go 2018-03-21 12:06:15 +09:00 committed by GitHub
parent 58dcdc3d73
commit e463c7ee80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ if(!function_exists("exec_db_query")) {
}
// execute statement (insert->execute(bind) or if not, sql->bind->execute)
$stmt_executed = $is_insert_with_bind ? $stmt->execute($bind) : $stmt->execute();
$stmt_executed = $is_insert_with_bind ? @$stmt->execute($bind) : @$stmt->execute();
if($is_check_count == true) {
if($stmt_executed && $stmt->rowCount() > 0) {