diff options
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/db/mysql.php | 2 | ||||
-rw-r--r-- | 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 { |