Update database.alt.php

This commit is contained in:
Namhyeon Go 2018-09-12 10:31:16 +09:00 committed by GitHub
parent 52097f29bf
commit 1d0082b1ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,14 +3,14 @@
* @file database.alt.php
* @date 2018-09-10
* @author Go Namhyeon <gnh1201@gmail.com>
* @brief Database alternative connecter
* @brief Database alternative driver switcher
*/
if(function_exists("get_db_alt_connect")) {
if(!function_exists("get_db_alt_connect")) {
function get_db_alt_connect($driver) {
$conn = false;
$config = get_config();
$rules = array(
array(
"driver" => "mysql.pdo",