git-svn-id: file:///svn/phpbb/trunk@4163 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2003-06-21 13:00:49 +00:00
parent 251a5b8f94
commit 8ef02f51fa

View file

@ -420,7 +420,7 @@ function delete_attachment($post_id_array = -1, $attach_id_array = -1, $page = '
$sql_id = 'post_id'; $sql_id = 'post_id';
} }
$sql = 'DELETE FROM ' . ATTACHMENTS_TABLE . ' $sql = "DELETE FROM " . ATTACHMENTS_TABLE . "
WHERE attach_id IN (" . implode(', ', $attach_id_array) . ") WHERE attach_id IN (" . implode(', ', $attach_id_array) . ")
AND $sql_id IN (" . implode(', ', $post_id_array) . ")"; AND $sql_id IN (" . implode(', ', $post_id_array) . ")";
$db->sql_query($sql); $db->sql_query($sql);