diff --git a/app/controllers/CourseController.php b/app/controllers/CourseController.php
index 7888b129440e7da517804280351e1b879180d37c..f511a83dc1e899506147bcbc8924b48726d526cb 100644
--- a/app/controllers/CourseController.php
+++ b/app/controllers/CourseController.php
@@ -72,10 +72,10 @@
         }
 
         public function module($params = ""){
-            if($params){
+            if(!$params){
                 header("Location: /notfound");
             }
-            // Hanya orang yang sudah login yang bisa liat module
+            // // Hanya orang yang sudah login yang bisa liat module
             $course = new Course();
             $module = new Module();
             $middleware = $this->middleware("LoginMiddleware");