diff --git a/app/Resources/views/blog/planning.html.twig b/app/Resources/views/blog/planning.html.twig index cb30ef5fb..e51ec7983 100644 --- a/app/Resources/views/blog/planning.html.twig +++ b/app/Resources/views/blog/planning.html.twig @@ -44,7 +44,7 @@ {% for room in rooms %} {% if slot[room.id] is defined %} {% set rows = slot[room.id] %} - {% set numberOfRowForThisSlot = rows[0].length / prevision %} + {% set numberOfRowForThisSlot = rows|first.length / prevision %} {% set hasConf = hasConf|merge({(room.name|trim):numberOfRowForThisSlot}) %} {# Boucle pour afficher chaque événement dans la salle #}