diff --git a/classes/observer.php b/classes/observer.php index 047103b6..d857251d 100644 --- a/classes/observer.php +++ b/classes/observer.php @@ -53,7 +53,7 @@ public static function wallet_completion_awards(\core\event\course_completed $ev // Getting the enrol wallet instance in the course (there is only one because multiple isn't allowed). $instances = enrol_get_instances($courseid, true); $instance = null; - $con = 0; + $con = 100; foreach ($instances as $inst) { // Check for multiple wallet instances and get the higher cost. // Check if awards enabled in this instance. @@ -130,7 +130,6 @@ public static function wallet_completion_awards(\core\event\course_completed $ev ]; $event = \enrol_wallet\event\award_granted::create($eventdata); $event->trigger(); - } /** This is a callback function when user created,