diff options
Diffstat (limited to 'includes/install_database.php')
| -rwxr-xr-x[-rw-r--r--] | includes/install_database.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/includes/install_database.php b/includes/install_database.php index 5dd7838..07d24e2 100644..100755 --- a/includes/install_database.php +++ b/includes/install_database.php @@ -10,7 +10,7 @@ */ $gBitSmarty->assign( 'next_step',$step ); -require_once( "includes/get_databases_inc.php" ); +require_once 'includes/get_databases_inc.php'; // next block checks if there is a config/kernel/config_inc.php and if we can connect through this. if( isset( $_REQUEST['submit_db_info'] )) { @@ -29,7 +29,7 @@ if( isset( $_REQUEST['submit_db_info'] )) { $gBitDb = ADONewConnection( $gBitDbType ); - if( $gBitDb->Connect( $gBitDbHost, $gBitDbUser, $gBitDbPassword, $gBitDbName )) { + if( $gBitDb->Connect( $gBitDbHost, $gBitDbUser, $gBitDbPassword, $gBitDbType != 'pdo' ? $gBitDbName : NULL )) { // display success page when done $app = '_done'; $gBitSmarty->assign( 'next_step',$step + 1 ); @@ -74,5 +74,4 @@ if( isset( $_REQUEST['submit_db_info'] )) { $error = TRUE; } } -} -?> +}
\ No newline at end of file |
