http://www.atutor.ca/atutor/mantis/view.php?id=4485
authorCindy Li <cli@ocad.ca>
Thu, 12 Aug 2010 17:54:22 +0000 (17:54 -0000)
committerCindy Li <cli@ocad.ca>
Thu, 12 Aug 2010 17:54:22 +0000 (17:54 -0000)
docs/home/index.php
docs/home/search.php

index 8e72e1b..2918c64 100644 (file)
@@ -33,6 +33,8 @@ if (isset($_GET['action'], $_GET['cid']) && $_SESSION['user_id'] > 0)
        
        if ($_GET['action'] == 'remove') $userCoursesDAO->Delete($_SESSION['user_id'], $cid);
        if ($_GET['action'] == 'add') $userCoursesDAO->Create($_SESSION['user_id'], $cid, TR_USERROLE_VIEWER, 0);
+       
+       $msg->addFeedback(ACTION_COMPLETED_SUCCESSFULLY);
 }
 
 // retrieve data to display
index 201f208..4e50f6a 100644 (file)
@@ -41,6 +41,8 @@ if (isset($_GET['action'], $_GET['cid']) && $_SESSION['user_id'] > 0)
        
        if ($_GET['action'] == 'remove') $userCoursesDAO->Delete($_SESSION['user_id'], $cid);
        if ($_GET['action'] == 'add') $userCoursesDAO->Create($_SESSION['user_id'], $cid, TR_USERROLE_VIEWER, 0);
+
+       $msg->addFeedback(ACTION_COMPLETED_SUCCESSFULLY);
 }
 
 // -- display results