Skip to content
Snippets Groups Projects
Commit 02c08f9d authored by Ron Lucke's avatar Ron Lucke Committed by Jan-Hendrik Willms
Browse files

fix #3942

Closes #3942

Merge request studip/studip!2801
parent cba3934c
No related branches found
No related tags found
No related merge requests found
......@@ -192,7 +192,7 @@ class Text extends BlockType
}
return array();
return null;
});
}
}
......@@ -199,7 +199,7 @@ abstract class ContainerType
foreach ($section['blocks'] as &$block) {
$block = $block_map[$block] ?? null;
}
$section['blocks'] = array_filter($section['blocks']);
$section['blocks'] = array_values(array_filter($section['blocks']));
}
return $payload;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment