modified coodle data migration

This commit is contained in:
adisposkofh
2026-08-03 16:34:38 +02:00
parent 0b07179986
commit fa0422f577
+3 -3
View File
@@ -125,12 +125,12 @@ while ($survey = $db->db_fetch_object($surveysResult)) {
// if there is a selected timeslot, getting its new id and updating survey
if ($selectedOldTimeslotId && count($timeslotIds)) {
$selectedTimeslotIdArray = array_filter(
$selectedTimeslotIdArray = array_values(array_filter(
$timeslotIds,
function ($timeslot) use ($selectedOldTimeslotId) {
return $timeslot["oldTimeslotId"] === $selectedOldTimeslotId;
}
);
));
$selectedTimeslotId = count($selectedTimeslotIdArray) ? $selectedTimeslotIdArray[0] : null;
$selectedTimeslotNewId = isset($selectedTimeslotId["newTimeslotId"]) ? $selectedTimeslotId["newTimeslotId"] : null;
if ($selectedTimeslotNewId) {
@@ -201,7 +201,7 @@ while ($survey = $db->db_fetch_object($surveysResult)) {
}
$participantsData[] = $participantData;
} else if ($resource->name && $resource->email) {
} else if ($resource->name && $resource->email && $resource->zugangscode) {
$externalParticipantData = [
"name" => $resource->name,
"email" => $resource->email,