diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-05-22 15:25:53 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-05-22 15:25:53 +0000 |
commit | c650e708c13204b9a38cbf4ae0eda1fd158c5dd3 (patch) | |
tree | 797f527d5c8d08cffea9aee3d86b4aaa1257124b /phpBB | |
parent | 4bf900ebae61d3b991b0a64d6d5492e3c8b1c43d (diff) | |
download | forums-c650e708c13204b9a38cbf4ae0eda1fd158c5dd3.tar forums-c650e708c13204b9a38cbf4ae0eda1fd158c5dd3.tar.gz forums-c650e708c13204b9a38cbf4ae0eda1fd158c5dd3.tar.bz2 forums-c650e708c13204b9a38cbf4ae0eda1fd158c5dd3.tar.xz forums-c650e708c13204b9a38cbf4ae0eda1fd158c5dd3.zip |
Minor fixes
git-svn-id: file:///svn/phpbb/trunk@319 89ea8834-ac86-4346-8a33-228a782c2dd0
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 { |