From e9c2dc1fa0ff57a6ba2f831dbd5746bcb5a27360 Mon Sep 17 00:00:00 2001
From: moodler <moodler>
Date: Sat, 9 Aug 2003 02:00:20 +0000
Subject: [PATCH] Robust variable for attchments

---
 mod/forum/lib.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mod/forum/lib.php b/mod/forum/lib.php
index ee2362803d..015087f243 100644
--- a/mod/forum/lib.php
+++ b/mod/forum/lib.php
@@ -946,6 +946,8 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link
         echo "<div align=\"right\">";
         $attachedimages = forum_print_attachments($post);
         echo "</div>";
+    } else {
+        $attachedimages = "";
     }
 
     if ($link and (strlen(strip_tags($post->message)) > FORUM_LONG_POST)) {
-- 
2.39.5