From 1c887009abef4712bf642f6709ea4748636fb8b3 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Thu, 24 Feb 2005 22:24:03 +0000 Subject: [PATCH] fixed single quote bug that led to $post->subject being displayed. --- mod/forum/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 62823419d32..6f486e6132f 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -1188,7 +1188,7 @@ function forum_count_discussion_replies($forum='0', $course='0', $user='0') { FROM {$CFG->prefix}forum_posts p, {$CFG->prefix}forum_discussions d WHERE p.parent > 0 $forumselect $courseselect $userselect - AND p.discussion = d.id + AND p.discussion = d.id GROUP BY p.discussion"); } @@ -1553,7 +1553,7 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link } if (!empty($CFG->filterall)) { /// Put the subject through the filters - $post->subject = filter_text('$post->subject', $courseid); + $post->subject = filter_text(''.$post->subject.'', $courseid); } echo '
'.$post->subject.'
';