From 43f06aa027ef486f475ed16ea5c43243ac4bd142 Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 26 Jun 2006 21:58:35 +0000 Subject: [PATCH] Bug #5927 - extending enrollments doesn't; merged from MOODLE_16_STABLE --- user/extendenrol.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } -- 2.39.5