Browse Source

Fix error

imwald
Nuša Pukšič 3 months ago
parent
commit
ea37c23115
  1. 2
      src/Controller/ArticleController.php

2
src/Controller/ArticleController.php

@ -176,7 +176,7 @@ class ArticleController extends AbstractController
} }
return $carry; return $carry;
}); });
$recentArticles = array_values($recentArticles); $recentArticles = array_values($recentArticles ?? []);
// get drafts // get drafts
// look for drafts on relays first, grab latest 5 from there // look for drafts on relays first, grab latest 5 from there
// one week ago // one week ago

Loading…
Cancel
Save