diff --git a/phpBB/db/mssql.php b/phpBB/db/mssql.php index e3bbd09be2..77fe808833 100644 --- a/phpBB/db/mssql.php +++ b/phpBB/db/mssql.php @@ -243,6 +243,7 @@ class sql_db if($transaction == END_TRANSACTION) { $result = mssql_query("COMMIT", $this->db_connect_id); + $this->in_transaction = FALSE; } return $this->query_result; diff --git a/phpBB/db/odbc.php b/phpBB/db/odbc.php index 4922939ee7..c43407421f 100644 --- a/phpBB/db/odbc.php +++ b/phpBB/db/odbc.php @@ -41,8 +41,7 @@ class sql_db // function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true) { - - if(eregi("^([[:alnum:]]+):([[:alnum:]]+)$", $sqlserver, $db_type)) + if( preg_match("/^(.*?):(.*?)$/i", $sqlserver, $db_type) ) { $this->persistency = $persistency; $this->user = $sqluser;