Skip to content
Snippets Groups Projects
Commit b942ad10 authored by Virendra Singh's avatar Virendra Singh Committed by Gareth Poole
Browse files

Issue #3401393: Check brandmark isset

parent 87654ebc
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ function sector_starterkit_preprocess_html(&$variables) {
// theme_get_setting('apply_glitter')
if(theme_get_setting('brand')) {
$brand = BlockContent::load(theme_get_setting('brand'));
$brandmark = $brand->field_brand_mark->first();
$brandmark = isset($brand) ? $brand->field_brand_mark->first() : null;
if(!$brandmark) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment