diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2009-07-30 13:47:27 +0000 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2009-07-30 13:47:27 +0000 |
| commit | 4616cdb066304031adef41ab56a132870ebaea89 (patch) | |
| tree | fb4d3576b1735c606334f6a8bc09dc6f0e10f09a /phpBB/includes/functions_posting.php | |
| parent | e1db7e08dc560faf176995972d2bc7dbd97627fe (diff) | |
| download | forums-4616cdb066304031adef41ab56a132870ebaea89.tar forums-4616cdb066304031adef41ab56a132870ebaea89.tar.gz forums-4616cdb066304031adef41ab56a132870ebaea89.tar.bz2 forums-4616cdb066304031adef41ab56a132870ebaea89.tar.xz forums-4616cdb066304031adef41ab56a132870ebaea89.zip | |
Fix bug #48885, introduced in r9843
Authorised by: kellanved
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9893 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
| -rw-r--r-- | phpBB/includes/functions_posting.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index e348694cfe..543472ad4e 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -1553,8 +1553,8 @@ function delete_post($forum_id, $topic_id, $post_id, &$data) { $sql = 'SELECT 1 AS has_attachments FROM ' . ATTACHMENTS_TABLE . ' - WHERE ' . $db->sql_in_set('topic_id', $topic_ids); - $result = $db->sql_query($sql); + WHERE topic_id = ' . $topic_id; + $result = $db->sql_query_limit($sql, 1); $has_attachments = (int) $db->sql_fetchfield('has_attachments'); $db->sql_freeresult($result); |
