diff --git a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php
index 4f435d53f..d6a4f84c4 100644
--- a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php
+++ b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php
@@ -99,6 +99,7 @@ class plugin_forum_view_shortcodes extends e_shortcode
$baseDir = $this->forum->getAttachmentPath($this->postInfo['post_user']);
$images = array();
+ $txt = '';
$attachArray = e107::unserialize($this->postInfo['post_attachments']);
//print_a($attachArray);
@@ -113,7 +114,7 @@ class plugin_forum_view_shortcodes extends e_shortcode
case 'file':
$url = e_SELF."?id=".$this->postInfo['post_id']."&dl=".$key;
- $txt = IMAGE_attachment." {$name}
";
+ $txt .= IMAGE_attachment." {$name}
";
break;