course completion: MDL-2631 Fix use of tabs
authorAaron Barnes <aaronb@catalyst.net.nz>
Fri, 27 Aug 2010 03:54:42 +0000 (03:54 +0000)
committerAaron Barnes <aaronb@catalyst.net.nz>
Fri, 27 Aug 2010 03:54:42 +0000 (03:54 +0000)
blocks/completionstatus/block_completionstatus.php

index 87b101c..ab2dc1b 100644 (file)
@@ -158,12 +158,12 @@ class block_completionstatus extends block_base {
         // Is course complete?
         $coursecomplete = $info->is_course_complete($USER->id);
                
-               // Load course completion
-       $params = array(
-                       'userid' => $USER->id,
-               'course' => $COURSE->id
-       );
-       $ccompletion = new completion_completion($params);
+        // Load course completion
+        $params = array(
+            'userid' => $USER->id,
+            'course' => $COURSE->id
+        );
+        $ccompletion = new completion_completion($params);
 
         // Has this user completed any criteria?
         $criteriacomplete = $info->count_course_user_data($USER->id);