]> git.mjollnir.org Git - moodle.git/commitdiff
Robust variable for attchments
authormoodler <moodler>
Sat, 9 Aug 2003 02:00:20 +0000 (02:00 +0000)
committermoodler <moodler>
Sat, 9 Aug 2003 02:00:20 +0000 (02:00 +0000)
mod/forum/lib.php

index ee2362803de4e376a8232f9b00bf23bab400bb11..015087f243041ad9d039076bc4e840d1dc462ad8 100644 (file)
@@ -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)) {