diff --git a/lib/Service/TableService.php b/lib/Service/TableService.php index 493e13ed0..55ad1c64b 100644 --- a/lib/Service/TableService.php +++ b/lib/Service/TableService.php @@ -110,7 +110,7 @@ public function findAll(?string $userId = null, bool $skipTableEnhancement = fal if (count($allTables) === 0 && $createTutorial) { try { $tutorialTable = $this->create($this->l->t('Tutorial'), 'tutorial', '🚀'); - $allTables = [$tutorialTable->getId() => $tutorialTable]; + $allTables[$tutorialTable->getId()] = $tutorialTable; } catch (InternalError|PermissionError|DoesNotExistException|MultipleObjectsReturnedException|OcpDbException $e) { $this->logger->error($e->getMessage(), ['exception' => $e]); throw new InternalError(get_class($this) . ' - ' . __FUNCTION__ . ': '.$e->getMessage());