mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
freeresult
git-svn-id: file:///svn/phpbb/trunk@4664 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -613,7 +613,7 @@ function delete_attachments($mode, $ids, $resync = TRUE)
|
|||||||
{
|
{
|
||||||
$remaining[] = $row['post_id'];
|
$remaining[] = $row['post_id'];
|
||||||
}
|
}
|
||||||
$db->sql_fetchrow($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
$unset_ids = array_diff($post_ids, $remaining);
|
$unset_ids = array_diff($post_ids, $remaining);
|
||||||
if (sizeof($unset_ids))
|
if (sizeof($unset_ids))
|
||||||
@@ -648,7 +648,7 @@ function delete_attachments($mode, $ids, $resync = TRUE)
|
|||||||
{
|
{
|
||||||
$remaining[] = $row['topic_id'];
|
$remaining[] = $row['topic_id'];
|
||||||
}
|
}
|
||||||
$db->sql_fetchrow($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
$unset_ids = array_diff($topic_ids, $remaining);
|
$unset_ids = array_diff($topic_ids, $remaining);
|
||||||
if (sizeof($unset_ids))
|
if (sizeof($unset_ids))
|
||||||
|
Reference in New Issue
Block a user