Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fmido88 authored Sep 2, 2023
1 parent 8e7d05f commit e7f74da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions classes/observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e7f74da

Please sign in to comment.