freeresult

git-svn-id: file:///svn/phpbb/trunk@4664 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2003-11-13 12:43:25 +00:00
parent 5f91c611d7
commit 142f32d554

View file

@ -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))