From: skodak Date: Mon, 26 Jun 2006 21:58:35 +0000 (+0000) Subject: Bug #5927 - extending enrollments doesn't; merged from MOODLE_16_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=43f06aa027ef486f475ed16ea5c43243ac4bd142;p=moodle.git Bug #5927 - extending enrollments doesn't; merged from MOODLE_16_STABLE --- diff --git a/user/extendenrol.php b/user/extendenrol.php index 9064ff58f4..56e9d400d4 100644 --- a/user/extendenrol.php +++ b/user/extendenrol.php @@ -1,8 +1,8 @@ -id)) { error("You must be an editing teacher in this course, or an admin"); } -if ($users && ($form = data_submitted() and confirm_sesskey())) { +if ((count($users) > 0) and ($form = data_submitted()) and confirm_sesskey()) { if (count($form->userid) != count($form->extendperiod)) { error('Parameters malformation', $CFG->wwwroot.'/user/index.php?id='.$id); }