Skip to content

Commit

Permalink
Update ThemeMigration.php
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhj authored Jun 14, 2021
1 parent c472a28 commit 9aeede6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Migration/ThemeMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9aeede6

Please sign in to comment.