From cab1b2cc16a1515810b68d41b3fc0f6a6e137edd Mon Sep 17 00:00:00 2001
From: nathaniacalista01 <nathania.calista01@gmail.com>
Date: Mon, 9 Oct 2023 11:56:24 +0700
Subject: [PATCH] fix bugs

---
 app/controllers/CourseController.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/controllers/CourseController.php b/app/controllers/CourseController.php
index 7888b12..f511a83 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");
-- 
GitLab