]> git.mjollnir.org Git - moodle.git/commitdiff
Students cannot enrol with PayPal plugin when using PHP4 MDL-7529
authorskodak <skodak>
Thu, 23 Nov 2006 20:16:36 +0000 (20:16 +0000)
committerskodak <skodak>
Thu, 23 Nov 2006 20:16:36 +0000 (20:16 +0000)
course/enrol.php

index 57349884d2c8a998d1855e245a11f5cd891af61d..0b86684c5d6e350a8d71bc2f0bf615908d11a7b3 100644 (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