diff --git a/classes/import/sessions.php b/classes/import/sessions.php index 24ff0d2..f22495b 100644 --- a/classes/import/sessions.php +++ b/classes/import/sessions.php @@ -328,9 +328,9 @@ class sessions { // Count of sessions added. $okcount = 0; - $groupids = array(); foreach ($this->sessions as $session) { + $groupids = array(); // Check course shortname matches. if ($DB->record_exists('course', array( 'shortname' => $session->course