Permalink
Browse files

MDL-33821 Fix SQL syntax for recent glossary activity

  • Loading branch information...
1 parent e04a0e3 commit 48e6de1c34974a9784ce0633975d169d128a6951 @andrewnicols andrewnicols committed Jun 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/glossary/lib.php
View
@@ -560,7 +560,7 @@ function glossary_print_recent_activity($course, $viewfullnames, $timestart) {
echo '<div class="info"><a href="'.$link.'">'.format_string($entry->concept, true).'</a></div>';
$entrycount += 1;
} else {
- $numnewentries = $DB->count_records_sql($countsql.$joins[0].$clausesql.$approvalsql.')', $params);
+ $numnewentries = $DB->count_records_sql($countsql.$joins[0].$clausesql.$approvalsql, $params);
echo '<div class="head"><div class="activityhead">'.get_string('andmorenewentries', 'glossary', $numnewentries - GLOSSARY_RECENT_ACTIVITY_LIMIT).'</div></div>';
break;
}

0 comments on commit 48e6de1

Please sign in to comment.