From: skodak Date: Thu, 23 Nov 2006 20:16:36 +0000 (+0000) Subject: Students cannot enrol with PayPal plugin when using PHP4 MDL-7529 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dc3306290d3661bc88f83c96901035930b2837eb;p=moodle.git Students cannot enrol with PayPal plugin when using PHP4 MDL-7529 --- diff --git a/course/enrol.php b/course/enrol.php index 57349884d2..0b86684c5d 100644 --- a/course/enrol.php +++ b/course/enrol.php @@ -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