]> git.mjollnir.org Git - moodle.git/commitdiff
Proper fix for the module toolbar actions
authorpatrickslee <patrickslee>
Thu, 23 Mar 2006 23:36:20 +0000 (23:36 +0000)
committerpatrickslee <patrickslee>
Thu, 23 Mar 2006 23:36:20 +0000 (23:36 +0000)
course/mod.php

index 337784d55d7b535dc1ff797b3a46cca07ff9a3f3..4e6330a1601b662212c11f97a4faceb06ebf2fca 100644 (file)
@@ -19,7 +19,7 @@
     $movetosection = optional_param( 'movetosection',0,PARAM_INT );
     $delete = optional_param( 'delete',0,PARAM_INT );
     $course = optional_param( 'course',0,PARAM_INT );
-    $groupmode = optional_param( 'groupmode',0,PARAM_INT );
+    $groupmode = optional_param( 'groupmode',-1,PARAM_INT );
     $duplicate = optional_param( 'duplicate',0,PARAM_INT );
 
     if (isset($SESSION->modform)) {   // Variables are stored in the session
         }
         exit;
 
-    } else if (isset($groupmode) and confirm_sesskey()) {
+    } else if ($groupmode > -1 and confirm_sesskey()) {
 
         $id = required_param( 'id', PARAM_INT );