diff --git a/db.php b/db.php index f1a7e01..61c3de4 100644 --- a/db.php +++ b/db.php @@ -596,6 +596,8 @@ public function db_connect( $query = '' ) { // Overlay $server if it was extracted from a callback if ( isset( $server ) && is_array( $server ) ) { extract( $server, EXTR_OVERWRITE ); + } else { + $server = null; } // Split again in case $server had host:port