From e7f74dab0f12bc9f2a0bfdbeeda8d02d1cc8daa8 Mon Sep 17 00:00:00 2001 From: Mo Farouk <122031508+fmido88@users.noreply.github.com> Date: Sun, 3 Sep 2023 00:19:07 +0300 Subject: [PATCH] Add files via upload --- classes/observer.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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,