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 89b6c85 commit f010e3a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions import/sessions_process.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,14 +371,18 @@ public function import() {
// Check if action is to add or to delete.
if (strtolower($session->action) == "add") {
// Format slot for DB add.
$slot = $this->construct_slot_data_for_add($session,$schedulerdb->id, $teacher->id);
$slot = $this->construct_slot_data_for_add($session, $schedulerdb->id, $teacher->id);

// Check for duplicate sessions.
if ($this->session_exists($slot) != false) {
mod_scheduler_notifyqueue::notify_message(get_string('sessionduplicate', 'scheduler', (array(
'course' => $session->course,
'activity' => $session->studentfirstname." ".$session->studentlastname." for ".userdate($session->sessiondate )
))));
$notifymessageactivity = $session->studentfirstname;
$notifymessageactivity .= " " . $session->studentlastname;
$notifymessageactivity .= " for " . userdate($session->sessiondate);
$notifymessage = get_string('sessionduplicate', 'scheduler', [
'course' => $session->course,
'activity' => $notifymessageactivity
]);
mod_scheduler_notifyqueue::notify_message($notifymessage);
unset($slot);
}

Expand Down

0 comments on commit f010e3a

Please sign in to comment.