From 8ef02f51fa311ec976e948d62c8e2223878d0e0c Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 21 Jun 2003 13:00:49 +0000 Subject: [PATCH] ups. :) git-svn-id: file:///svn/phpbb/trunk@4163 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_posting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 73fdc70b6f..2ee615295b 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -420,7 +420,7 @@ function delete_attachment($post_id_array = -1, $attach_id_array = -1, $page = ' $sql_id = 'post_id'; } - $sql = 'DELETE FROM ' . ATTACHMENTS_TABLE . ' + $sql = "DELETE FROM " . ATTACHMENTS_TABLE . " WHERE attach_id IN (" . implode(', ', $attach_id_array) . ") AND $sql_id IN (" . implode(', ', $post_id_array) . ")"; $db->sql_query($sql);