diff --git a/import/sessions_process.php b/import/sessions_process.php index 8f4d0ba..6d0a7d0 100644 --- a/import/sessions_process.php +++ b/import/sessions_process.php @@ -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); }