diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-12-24 13:11:54 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-12-24 13:11:54 +0000 |
commit | ae1cb0316e6c19d62f0579e9cef52f11df081bcf (patch) | |
tree | d5e0900486aeb6ac91b957ce2ac47a4d55cdddc7 /phpBB/search.php | |
parent | 9cc0b364bcc9473d0b1f4656db9008a55921918b (diff) | |
download | forums-ae1cb0316e6c19d62f0579e9cef52f11df081bcf.tar forums-ae1cb0316e6c19d62f0579e9cef52f11df081bcf.tar.gz forums-ae1cb0316e6c19d62f0579e9cef52f11df081bcf.tar.bz2 forums-ae1cb0316e6c19d62f0579e9cef52f11df081bcf.tar.xz forums-ae1cb0316e6c19d62f0579e9cef52f11df081bcf.zip |
some fixes today
- most important change is the consolidation of the display attachment functions; merging them together to have one function we need to call.
git-svn-id: file:///svn/phpbb/trunk@6803 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/search.php')
-rw-r--r-- | phpBB/search.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index d0575bdc3c..e86e1bea68 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -822,9 +822,9 @@ if ($keywords || $author || $author_id || $search_id || $submit) $bbcode->bbcode_second_pass($message, $row['bbcode_uid'], $row['bbcode_bitfield']); } - if (isset($attachments[$row['post_id']]) && sizeof($attachments[$row['post_id']])) + if (!empty($attachments[$row['post_id']])) { - parse_inline_attachments($message, $attachments[$row['post_id']], $update_count, $forum_id); + parse_attachments($forum_id, $message, $attachments[$row['post_id']], $update_count); // we only display inline attachments unset($attachments[$row['post_id']]); |