diff --git a/source/php/Module/Posts/TemplateController/AbstractController.php b/source/php/Module/Posts/TemplateController/AbstractController.php index 255bbf961..6cdd2297a 100644 --- a/source/php/Module/Posts/TemplateController/AbstractController.php +++ b/source/php/Module/Posts/TemplateController/AbstractController.php @@ -96,7 +96,7 @@ public function preparePosts($posts = []) return $post; - }, $posts); + }, $posts ?? []); if(!empty($posts)) { foreach ($posts as $index => &$post) {