Skip to content
Permalink
Browse files

Revert "Update class.discussionmodel.php" - Undo unread change becaus…

…e it has new security bug; closes #1871

This reverts commit 1ab2895.
  • Loading branch information...
linc committed Apr 28, 2014
1 parent 21ee7ea commit eb3aaf906e15573a3f7d1a8d92e402c8381f0be6
Showing with 1 addition and 2 deletions.
  1. +1 −2 applications/vanilla/models/class.discussionmodel.php
@@ -392,8 +392,7 @@ public function GetUnread($Offset = '0', $Limit = '', $Wheres = '', $AdditionalF
//->Where('w.DateLastViewed', NULL)
//->OrWhere('d.DateLastComment >', 'w.DateLastViewed')
//->EndWhereGroup()
->Where('d.CountComments >', 'COALESCE(w.CountComments, 0)', TRUE, FALSE)
->OrWhere('w.DateLastViewed', NULL);
->Where('d.CountComments >', 'COALESCE(w.CountComments, 0)', TRUE, FALSE);
} else {
$this->SQL
->Select('0', '', 'WatchUserID')

0 comments on commit eb3aaf9

Please sign in to comment.
You can’t perform that action at this time.