Update database.alt.php

This commit is contained in:
Namhyeon Go 2019-02-26 14:44:54 +09:00 committed by GitHub
parent b631d57574
commit 5feac462e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ if(!check_function_exists("exec_db_alt_callback")) {
foreach($rules as $rule) {
if($rule['driver'] == $db_driver) {
if(loadHelper(sprintf("database.%s", $rule['driver']))) {
if(!check_function_exists($rule['callback'])) {
if(check_function_exists($rule['callback'])) {
if(is_array($params) && count($params) > 0) {
$result = call_user_func_array($rule['callback'], $params);
} else {