From d0c231688c97743f2a8beb7a88c1c9877e9a80b6 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 10 Mar 2006 09:06:16 +0000 Subject: [PATCH] Cleaning --- mod/data/add.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mod/data/add.php b/mod/data/add.php index e49393ae37..40708234db 100755 --- a/mod/data/add.php +++ b/mod/data/add.php @@ -24,9 +24,7 @@ require_once('../../config.php'); require_once('lib.php'); - require_once($CFG->libdir.'/blocklib.php'); - require_once('pagelib.php'); require_login(); $mode ='addtemplate'; //define the mode for this page, only 1 mode available @@ -64,7 +62,7 @@ } ///checking for participants - if ((!isteacher($course->id)) && $data->participants ==PARTICIPANTS_T) { + if ((!isteacher($course->id)) && $data->participants == PARTICIPANTS_T) { error ('students are not allowed to participate in this activity'); } -- 2.39.5