Permalink
Browse files

MDL-32769 course: Do not show a completion status of 0/0

  • Loading branch information...
1 parent 7c05cd0 commit 68b8cc84af58ec4c54b6e9d16b18578a87a4d39f @ankitagarwal ankitagarwal committed Jun 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/format/renderer.php
@@ -367,7 +367,7 @@ private function section_activity_summary($section, $course, $mods) {
// Output section completion data
if ($completioninfo->is_enabled() != COMPLETION_TRACKING_NONE && isloggedin() &&
- !isguestuser()) {
+ !isguestuser() && $total !== 0) {
$o.= html_writer::start_tag('span', array('class' => 'activity-count'));
$o.= get_string("completionstatus")." $complete / $total";
$o.= html_writer::end_tag('span');

0 comments on commit 68b8cc8

Please sign in to comment.