diff --git a/src/Service/SubRepositoryHelper.php b/src/Service/SubRepositoryHelper.php index b7c3f4a4..87a2ae56 100644 --- a/src/Service/SubRepositoryHelper.php +++ b/src/Service/SubRepositoryHelper.php @@ -149,7 +149,7 @@ public function getTwigData(UserInterface $user = null): array } if ($user instanceof PacketonUserInterface) { - $allowed = $user->getSubRepos(); + $allowed = $user->getSubRepos() ?: []; $data = array_filter($data, fn ($item) => in_array($item['id'], $allowed, true)); }