Skip to content

Commit

Permalink
Merge pull request #111 from localgovdrupal/2.x
Browse files Browse the repository at this point in the history
2.2.1 release
  • Loading branch information
finnlewis authored Oct 10, 2022
2 parents b146bdf + 195f8f3 commit 70c528b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion localgov_subsites.module
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function localgov_subsites_preprocess_page(&$variables) {
->getInstanceFromDefinition(Subsite::class)
->getSubsite($node);

if ($subsite instanceof NodeInterface && $theme = $subsite->localgov_subsites_theme->value) {
if ($subsite instanceof NodeInterface && isset($subsite->localgov_subsites_theme->value) && $theme = $subsite->localgov_subsites_theme->value) {
$variables['attributes']['class'][] = str_replace('_', '--', $theme);
}
}
Expand Down

0 comments on commit 70c528b

Please sign in to comment.