From c650e708c13204b9a38cbf4ae0eda1fd158c5dd3 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 22 May 2001 15:25:53 +0000 Subject: [PATCH] Minor fixes git-svn-id: file:///svn/phpbb/trunk@319 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/db/mysql.php | 2 +- phpBB/db/oracle.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php index 6682766c73..2cf94606d0 100644 --- a/phpBB/db/mysql.php +++ b/phpBB/db/mysql.php @@ -286,7 +286,7 @@ class sql_db } } function sql_nextid(){ - if($this->db_connection_id) + if($this->db_connect_id) { $result = @mysql_insert_id($this->db_connect_id); return $result; diff --git a/phpBB/db/oracle.php b/phpBB/db/oracle.php index beff60ccd4..f67ab24ced 100644 --- a/phpBB/db/oracle.php +++ b/phpBB/db/oracle.php @@ -92,7 +92,7 @@ class sql_db { if(eregi("LIMIT", $query)) { - preg_match("/^(.*)LIMIT ([0-9]+)[, ]*([0-9]+)*", $query, $limits); + preg_match("/^(.*)LIMIT ([0-9]+)[, ]*([0-9]+)*/s", $query, $limits); $query = $limits[1]; if($limits[3]) @@ -321,10 +321,10 @@ class sql_db } function sql_nextid() { - if($this->db_connection_id) + if($this->db_connect_id) { - $result = @mysql_insert_id(); - return $result; + //$result = @mysql_insert_id($this->db_connect_id); + return false; } else {