mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 11:44:08 +02:00
tiny fixes
git-svn-id: file:///svn/phpbb/trunk@5128 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -96,6 +96,12 @@ class sql_db
|
||||
$result = @mysqli_commit($this->db_connect_id);
|
||||
@mysqli_autocommit($this->db_connect_id, true);
|
||||
$this->transaction = false;
|
||||
|
||||
if (!$result)
|
||||
{
|
||||
@mysqli_rollback($this->db_connect_id);
|
||||
@mysqli_autocommit($this->db_connect_id, true);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'rollback':
|
||||
@@ -290,13 +296,15 @@ class sql_db
|
||||
|
||||
unset($this->rowset[$cur_index]);
|
||||
unset($this->row[$cur_index]);
|
||||
|
||||
|
||||
$result = array();
|
||||
while ($this->rowset[$cur_index] = $this->sql_fetchrow($query_id))
|
||||
{
|
||||
$result[] = $this->rowset[$cur_index];
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user