diff --git a/mod/forum/index.php b/mod/forum/index.php
index <HASH>..<HASH> 100644
--- a/mod/forum/index.php
+++ b/mod/forum/index.php
@@ -16,7 +16,7 @@
         }
     }
 
-    require_course_login($course->id);
+    require_course_login($course);
 
     $currentgroup = get_current_group($course->id);
 
diff --git a/mod/scorm/index.php b/mod/scorm/index.php
index <HASH>..<HASH> 100755
--- a/mod/scorm/index.php
+++ b/mod/scorm/index.php
@@ -8,7 +8,7 @@
         error("Course ID is incorrect");
     }
 
-    require_course_login($course->id);
+    require_course_login($course);
 
     add_to_log($course->id, "scorm", "view all", "index.php?id=$course->id", "");
Correct calls to require_course_login