http://atutor.ca/atutor/mantis/view.php?id=3075
authorjoel kronenberg <joel.kronenberg@utoronto.ca>
Mon, 30 Jul 2007 17:28:33 +0000 (17:28 -0000)
committerjoel kronenberg <joel.kronenberg@utoronto.ca>
Mon, 30 Jul 2007 17:28:33 +0000 (17:28 -0000)
docs/include/classes/Message/Message.class.php
docs/tools/delete_course.php
docs/tools/forums/index.php

index 38e166f..1bf50cf 100644 (file)
@@ -275,8 +275,9 @@ class Message {
        
 
        function addConfirm($code, $hidden_vars = '') {
+               $hidden_vars_string = '';
                if (is_array($hidden_vars)) {
-                       foreach($hidden_vars as $key => $value) {
+                       foreach ($hidden_vars as $key => $value) {
                                $hidden_vars_string .= '<input type="hidden" name="'.$key.'" value="'.$value.'" />';
                        }
                }
index 65add30..19dfeee 100644 (file)
@@ -16,7 +16,7 @@ define('AT_INCLUDE_PATH', '../include/');
 require(AT_INCLUDE_PATH.'vitals.inc.php');
 authenticate(AT_PRIV_ADMIN);
 
-$course = intval($_REQUEST['course']);
+$course = isset($_REQUEST['course']) ? intval($_REQUEST['course']) : 0;
 
 if (isset($_POST['submit_no'])) {
        $msg->addFeedback('CANCELLED');
index ef334bc..0076e0a 100644 (file)
@@ -31,17 +31,6 @@ require(AT_INCLUDE_PATH.'lib/forums.inc.php');
 \r
 require(AT_INCLUDE_PATH.'header.inc.php');\r
 \r
-if ($_GET['col']) {\r
-       $col = addslashes($_GET['col']);\r
-} else {\r
-       $col = 'title';\r
-}\r
-\r
-if ($_GET['order']) {\r
-       $order = addslashes($_GET['order']);\r
-} else {\r
-       $order = 'asc';\r
-}\r
 \r
 $all_forums = get_forums($_SESSION['course_id']);\r
 ?>\r