Skip to content

Commit

Permalink
Fix count announcements in course #1856
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed May 25, 2017
1 parent 1828b2c commit 747e606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/inc/lib/AnnouncementManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ public static function getAnnouncements(

$select = ' DISTINCT announcement.*, ip.visibility, ip.to_group_id, ip.insert_user_id, ip.insert_date';
if ($getCount) {
$select = ' COUNT(announcement.iid) count';
$select = ' COUNT(DISTINCT announcement.iid) count';
}

$searchCondition = '';
Expand Down

0 comments on commit 747e606

Please sign in to comment.