From dc3306290d3661bc88f83c96901035930b2837eb Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 23 Nov 2006 20:16:36 +0000 Subject: [PATCH] Students cannot enrol with PayPal plugin when using PHP4 MDL-7529 --- course/enrol.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.39.5