Skip to content
Snippets Groups Projects
Commit a6d3c410 authored by Eric Bremner's avatar Eric Bremner Committed by Eric Bremner
Browse files

ISTWCMS-4704: fixing undefined index error

parent a841b897
No related branches found
No related tags found
1 merge request!112Feature/istwcms 4704 m26lebla ebremner content types
...@@ -287,7 +287,9 @@ function uw_cfg_common_preprocess_node(&$variables) { ...@@ -287,7 +287,9 @@ function uw_cfg_common_preprocess_node(&$variables) {
// If the layout builder style is set to full width, then set // If the layout builder style is set to full width, then set
// the classes variable for the node and exit the loop. // the classes variable for the node and exit the loop.
if ($settings['layout_builder_styles_style'] == "uw_lbs_full_width") { if (isset($settings['layout_builder_styles_style']) &&
$settings['layout_builder_styles_style'] == "uw_lbs_full_width"
) {
// Add a class to the node for full width on a section. // Add a class to the node for full width on a section.
$variables['attributes']['class'][] = 'uw-section-has-full-width'; $variables['attributes']['class'][] = 'uw-section-has-full-width';
......
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