From ea37c231150153f44b6c50854e1606187aa82858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Wed, 22 Oct 2025 12:17:57 +0200 Subject: [PATCH] Fix error --- src/Controller/ArticleController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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