From: patrickslee Date: Thu, 23 Mar 2006 23:36:20 +0000 (+0000) Subject: Proper fix for the module toolbar actions X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c4dd557978176dbec941713f28e7f0c173d47f82;p=moodle.git Proper fix for the module toolbar actions --- diff --git a/course/mod.php b/course/mod.php index 337784d55d..4e6330a160 100644 --- a/course/mod.php +++ b/course/mod.php @@ -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 @@ -343,7 +343,7 @@ } exit; - } else if (isset($groupmode) and confirm_sesskey()) { + } else if ($groupmode > -1 and confirm_sesskey()) { $id = required_param( 'id', PARAM_INT );