diff --git a/src/Migration/ThemeMigration.php b/src/Migration/ThemeMigration.php index d64585c..2813c9c 100644 --- a/src/Migration/ThemeMigration.php +++ b/src/Migration/ThemeMigration.php @@ -113,6 +113,9 @@ private function persistTheme(string $themeName, array $config, string $manifest $row = $this->connection ->executeQuery('SELECT id, manifestHash FROM tl_theme WHERE alias=:alias', ['alias' => $themeName]) ->fetch(FetchMode::ASSOCIATIVE); + + // Prevent array-access error when theme not found + $row = false === $row ? [] : $row; if ($manifestHash === $row['manifestHash'] ?? '') { return false;