Update database.php

This commit is contained in:
Namhyeon Go 2018-03-09 21:44:31 +09:00 committed by GitHub
parent e5885c476c
commit fd9e478cb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,11 +38,7 @@ if(!function_exists("sql_query")) {
if(!function_exists("get_dbc_object")) {
function get_dbc_object($renew=false) {
global $dbc;
if($renew) {
$dbc = get_db_connect();
}
$dbc = $renew ? get_db_connect() : $dbc;
return $dbc;
}
}