Skip to content

Commit

Permalink
Code checker fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnOLane committed Jul 16, 2024
1 parent ba61b4f commit e812cf2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions import/sessions_process.php
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand All @@ -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);
Expand Down

0 comments on commit e812cf2

Please sign in to comment.