mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Minor fixes
git-svn-id: file:///svn/phpbb/trunk@319 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
4bf900ebae
commit
c650e708c1
2 changed files with 5 additions and 5 deletions
|
@ -286,7 +286,7 @@ class sql_db
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function sql_nextid(){
|
function sql_nextid(){
|
||||||
if($this->db_connection_id)
|
if($this->db_connect_id)
|
||||||
{
|
{
|
||||||
$result = @mysql_insert_id($this->db_connect_id);
|
$result = @mysql_insert_id($this->db_connect_id);
|
||||||
return $result;
|
return $result;
|
||||||
|
|
|
@ -92,7 +92,7 @@ class sql_db
|
||||||
{
|
{
|
||||||
if(eregi("LIMIT", $query))
|
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];
|
$query = $limits[1];
|
||||||
if($limits[3])
|
if($limits[3])
|
||||||
|
@ -321,10 +321,10 @@ class sql_db
|
||||||
}
|
}
|
||||||
function sql_nextid()
|
function sql_nextid()
|
||||||
{
|
{
|
||||||
if($this->db_connection_id)
|
if($this->db_connect_id)
|
||||||
{
|
{
|
||||||
$result = @mysql_insert_id();
|
//$result = @mysql_insert_id($this->db_connect_id);
|
||||||
return $result;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue