mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-21 00:02:18 +02: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
@ -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;
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user