From fa54dd3bbf6673d2767cb84ae1f203fc54d048cd Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Fri, 30 Oct 2009 22:10:45 +0000 Subject: [PATCH] enrol/paypall MDL-16782 - Default cost is not used When a course level cost is not set, the global setting is not used. --- enrol/paypal/enrol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/paypal/enrol.php b/enrol/paypal/enrol.php index e4de832e2a..f08de8eeb9 100644 --- a/enrol/paypal/enrol.php +++ b/enrol/paypal/enrol.php @@ -25,7 +25,7 @@ function print_entry($course) { $teacher = false; } - if ( (float) $course->cost < 0 ) { + if ( (float) $course->cost <= 0 ) { $cost = (float) $CFG->enrol_cost; } else { $cost = (float) $course->cost; -- 2.39.5