diff --git a/src/CoreBundle/Migrations/Schema/V200/Version20230904173400.php b/src/CoreBundle/Migrations/Schema/V200/Version20230904173400.php index bae853aba8..6180fc53d9 100644 --- a/src/CoreBundle/Migrations/Schema/V200/Version20230904173400.php +++ b/src/CoreBundle/Migrations/Schema/V200/Version20230904173400.php @@ -72,7 +72,7 @@ class Version20230904173400 extends AbstractMigrationChamilo $em->persist($calendarEvent); if ($collectiveInvitationsEnabled) { - $calendarEvent->setCollective($personalAgenda['collective']); + $calendarEvent->setCollective((bool) $personalAgenda['collective']); $hasSubscriptions = false; $invitationsOrSubscriptionsInfo = [];