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); }