Update database.php

This commit is contained in:
Namhyeon Go 2018-12-27 15:16:16 +09:00 committed by GitHub
parent d31c1d8a85
commit cdbc103ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,9 +168,7 @@ if(!function_exists("exec_db_query")) {
if($display_error) {
$error_info = $stmt->errorInfo();
if(count($error_info) > 0) {
foreach($error_info as $err) {
set_error($err, "DATABASE-ERROR");
}
set_error(implode(" ", $error_info), "DATABASE-ERROR");
}
show_errors(false);
}
@ -188,7 +186,7 @@ if(!function_exists("exec_db_query")) {
}
if($flag === false) {
set_error(md5($sql), "DATABASE-QUERY-FAILURE");
set_error(get_hashed_text($sql), "DATABASE-QUERY-FAILURE");
}
return $flag;