From 8e7d05feb6ec5fda197d13cf70b3c9981504db13 Mon Sep 17 00:00:00 2001 From: Mo Farouk <122031508+fmido88@users.noreply.github.com> Date: Sun, 3 Sep 2023 00:04:37 +0300 Subject: [PATCH] Add files via upload --- classes/observer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/observer.php b/classes/observer.php index db96ab03..047103b6 100644 --- a/classes/observer.php +++ b/classes/observer.php @@ -42,7 +42,8 @@ class observer { * @return void */ public static function wallet_completion_awards(\core\event\course_completed $event) { - if (!get_config('enrol_wallet', 'awardssite')) { + $siteaward = get_config('enrol_wallet', 'awardssite'); + if (empty($siteaward)) { return; }