Skip to content

Commit

Permalink
FIX Ensure themelist is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 14, 2024
1 parent b6ba2b8 commit bb73f02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Extensions/SiteTreeSubsites.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,10 @@ public static function contentcontrollerInit($controller)
$subsite = Subsite::currentSubsite();

if ($subsite && $subsite->Theme) {
SSViewer::set_themes(ThemeResolver::singleton()->getThemeList($subsite));
$themeList = ThemeResolver::singleton()->getThemeList($subsite);
if (!is_null($themeList)) {
SSViewer::set_themes($themeList);
}
}

$ignore_subsite_locale = Config::inst()->get(SiteTreeSubsites::class, 'ignore_subsite_locale');
Expand Down

0 comments on commit bb73f02

Please sign in to comment.