From 02c47e28eee8da4de6cbf9cf22cf06488ec58901 Mon Sep 17 00:00:00 2001 From: Johannes Burk Date: Wed, 11 Jun 2014 23:36:06 +0200 Subject: [PATCH] removed comment, formatted fields array --- edit.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/edit.php b/edit.php index a07ab9f..ff85b30 100644 --- a/edit.php +++ b/edit.php @@ -58,10 +58,10 @@ if ($mform->is_cancelled()) { $DB->update_record('enrol', $instance); } else { -// $fields = array('status'=>$data->status, 'name'=>$data->name, 'password'=>$data->password, 'customint1'=>$data->customint1, 'customint2'=>$data->customint2, -// 'customint3'=>$data->customint3, 'customint4'=>$data->customint4, 'customtext1'=>$data->customtext1, -// 'roleid'=>$data->roleid, 'enrolperiod'=>$data->enrolperiod, 'enrolstartdate'=>$data->enrolstartdate, 'enrolenddate'=>$data->enrolenddate); - $fields = array('status'=>$data->status, 'name'=>$data->name, 'customtext1'=>$data->customtext1); + $fields = array( + 'status'=>$data->status, + 'name'=>$data->name, + 'customtext1'=>$data->customtext1); $plugin->add_instance($course, $fields); }