diff --git a/course/lib.php b/course/lib.php index ea68ec51697..46075f5b6cf 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1465,9 +1465,9 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, $completionicon=''; if($isediting) { switch($completion) { - case COMPLETION_TRACKING_MANUAL : + case COMPLETION_TRACKING_MANUAL : $completionicon='manual-enabled'; break; - case COMPLETION_TRACKING_AUTOMATIC : + case COMPLETION_TRACKING_AUTOMATIC : $completionicon='auto-enabled'; break; default: // wtf } @@ -1498,8 +1498,8 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, $imgtitle=get_string('completion-title-'.$completionicon,'completion'); $newstate= $completiondata->completionstate==COMPLETION_COMPLETE - ? COMPLETION_INCOMPLETE - : COMPLETION_COMPLETE; + ? COMPLETION_INCOMPLETE + : COMPLETION_COMPLETE; // In manual mode the icon is a toggle form. echo "