From e812cf2ab2d2678322ad257b619899aad7c3ae44 Mon Sep 17 00:00:00 2001 From: John Lane <46030891+JohnOLane@users.noreply.github.com> Date: Tue, 16 Jul 2024 15:13:36 -0600 Subject: [PATCH] Code checker fixes. --- import/sessions_process.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/import/sessions_process.php b/import/sessions_process.php index 8a0adbf7..6dc02bea 100644 --- a/import/sessions_process.php +++ b/import/sessions_process.php @@ -408,7 +408,13 @@ public function import() { $this->add_appointment($appointment, $context); $okcount ++; } else { - mod_scheduler_notifyqueue::notify_problem(get_string('error:invalidstudent', 'scheduler', ['name' => $session->studentfirstname." ".$session->studentlastname, 'course' => $session->course])); + $notifyproblemname = $session->studentfirstname." ".$session->studentlastname; + $notifyproblem = get_string( + 'error:invalidstudent', + 'scheduler', + ['name' => $notifyproblemname, 'course' => $session->course] + ); + mod_scheduler_notifyqueue::notify_problem($notifyproblem); } } } else if (strtolower($session->action) == "delete") { @@ -417,7 +423,7 @@ public function import() { $slotid = $this->session_exists($slot); // Check if exists if not error. - if ($slotid!= false) { + if ($slotid != false) { $slot->id = $slotid; $result = $this->delete_slot($slot, $scheduler); unset($slot);