Enroll user to course

Re: Enroll user to course

by Tony Nguyen -
Number of replies: 0
I think

if ($instance->name == $enrolmethod)

should be

if ($instance->enrol == $enrolmethod)

and 

if ($manualinstance !== null)


should be

if ($manualinstance == null)

"name"  field in the  the enrol table have null values. I'm using (2.8)

Average of ratings: Useful (1)