mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-18 23:14:41 +01:00
Fixed nextid
git-svn-id: file:///svn/phpbb/trunk@920 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
415bdfb68b
commit
e5753a1371
@ -203,6 +203,11 @@ class sql_db
|
||||
}
|
||||
else
|
||||
{
|
||||
if(eregi("^(INSERT|UPDATE) ", $query))
|
||||
{
|
||||
$query = preg_replace("/\\\'/s", "''", $query);
|
||||
}
|
||||
|
||||
$this->query_result = odbc_exec($this->db_connect_id, $query);
|
||||
|
||||
if($this->query_result)
|
||||
@ -425,7 +430,7 @@ class sql_db
|
||||
}
|
||||
if($query_id)
|
||||
{
|
||||
return $this->next_id[$query_id]+1;
|
||||
return $this->next_id[$query_id];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user