Students cannot enrol with PayPal plugin when using PHP4 MDL-7529

This commit is contained in:
skodak
2006-11-23 20:16:36 +00:00
parent 49c81fe0fd
commit dc3306290d
+1 -3
View File
@@ -24,9 +24,7 @@
error("That's an invalid course id");
}
if (! $enrol = enrolment_factory::factory($course->enrol)) {
error("Could not determine course enrolment method!");
}
$enrol = enrolment_factory::factory($course->enrol); // do not use if (!$enrol... here, it can not work in PHP4 - see MDL-7529
/// Refreshing all current role assignments for the current user