mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
unset stored values of row and rowset upon freeresult
git-svn-id: file:///svn/phpbb/trunk@2109 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
87fcf10454
commit
84163cb816
2 changed files with 21 additions and 4 deletions
|
@ -305,10 +305,15 @@ class sql_db
|
||||||
{
|
{
|
||||||
$query_id = $this->query_result;
|
$query_id = $this->query_result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $query_id )
|
if ( $query_id )
|
||||||
{
|
{
|
||||||
$result = @mysql_free_result($query_id);
|
unset($this->row[$query_id]);
|
||||||
return $result;
|
unset($this->rowset[$query_id]);
|
||||||
|
|
||||||
|
@mysql_free_result($query_id);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -297,7 +297,19 @@ class sql_db
|
||||||
$query_id = $this->query_result;
|
$query_id = $this->query_result;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ( $query_id ) ? mysql_free_result($query_id) : false;
|
if ( $query_id )
|
||||||
|
{
|
||||||
|
unset($this->row[$query_id]);
|
||||||
|
unset($this->rowset[$query_id]);
|
||||||
|
|
||||||
|
mysql_free_result($query_id);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function sql_error()
|
function sql_error()
|
||||||
|
|
Loading…
Add table
Reference in a new issue