Permalink
Browse files

Corrected a typo that was throwing errors.

  • Loading branch information...
1 parent 056bb94 commit 226f79e03aabbc4fdd2c6675586b5aea0e99b154 mchurch committed Mar 4, 2005
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/forum/lib.php
View
@@ -3317,7 +3317,8 @@ function forum_tp_count_forum_unread_posts($userid, $forumid, $groupid=false) {
}
$sql = 'SELECT COUNT(p.id) '.
- 'FROM '.$CFG->prefix.'forum_posts p JOIN '.$CFG->prefix.'forum_discussions d ON p.discussion = d.id '.
+ 'FROM '.$CFG->prefix.'forum_posts p '.
+ 'LEFT JOIN '.$CFG->prefix.'forum_discussions d ON p.discussion = d.id '.
'LEFT JOIN '.$CFG->prefix.'forum_read r ON r.postid = p.id AND r.userid = '.$userid.' '.
'WHERE d.forum = '.$forumid.$groupsel.
' AND p.modified >= '.$cutoffdate.' AND r.id is NULL';

0 comments on commit 226f79e

Please sign in to comment.