Update database.php
This commit is contained in:
parent
e5885c476c
commit
fd9e478cb2
|
@ -38,11 +38,7 @@ if(!function_exists("sql_query")) {
|
||||||
if(!function_exists("get_dbc_object")) {
|
if(!function_exists("get_dbc_object")) {
|
||||||
function get_dbc_object($renew=false) {
|
function get_dbc_object($renew=false) {
|
||||||
global $dbc;
|
global $dbc;
|
||||||
|
$dbc = $renew ? get_db_connect() : $dbc;
|
||||||
if($renew) {
|
|
||||||
$dbc = get_db_connect();
|
|
||||||
}
|
|
||||||
|
|
||||||
return $dbc;
|
return $dbc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user