Students cannot enrol with PayPal plugin when using PHP4 MDL-7529; backported from HEAD

This commit is contained in:
skodak
2006-11-23 20:17:23 +00:00
parent 8d137d3be6
commit e38e49335c
+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