From: moodler Date: Sat, 9 Aug 2003 02:00:20 +0000 (+0000) Subject: Robust variable for attchments X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e9c2dc1fa0ff57a6ba2f831dbd5746bcb5a27360;p=moodle.git Robust variable for attchments --- 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 "
"; $attachedimages = forum_print_attachments($post); echo "
"; + } else { + $attachedimages = ""; } if ($link and (strlen(strip_tags($post->message)) > FORUM_LONG_POST)) {