diff --git a/src/Controller/ArticleController.php b/src/Controller/ArticleController.php index c9ab9fc..438934c 100644 --- a/src/Controller/ArticleController.php +++ b/src/Controller/ArticleController.php @@ -176,7 +176,7 @@ class ArticleController extends AbstractController } return $carry; }); - $recentArticles = array_values($recentArticles); + $recentArticles = array_values($recentArticles ?? []); // get drafts // look for drafts on relays first, grab latest 5 from there // one week ago