diff --git a/app/classes/Framadate/Migration/From_0_8_to_0_9_Migration.php b/app/classes/Framadate/Migration/From_0_8_to_0_9_Migration.php index bed4fe8a3ad1183c59943e963294c2dd8c69d0d6..4598449832b11f45835b9a6bfe6dcc00b6be70e3 100644 --- a/app/classes/Framadate/Migration/From_0_8_to_0_9_Migration.php +++ b/app/classes/Framadate/Migration/From_0_8_to_0_9_Migration.php @@ -166,7 +166,9 @@ CREATE TABLE IF NOT EXISTS `' . Utils::table('slot') . '` ( foreach ($sujets as $sujet) { $newSlots = $this->transformSujetToSlot($sujet); - $slots = array_merge($slots, $newSlots); + foreach ($newSlots as $newSlot) { + $slots[] = $newSlot; + } } $prepared = $pdo->prepare('INSERT INTO ' . Utils::table('slot') . ' (`poll_id`, `title`, `moments`) VALUE (?,?,?)');