From a6d3c410af8d41501b65a1c5963ed27c98d040bb Mon Sep 17 00:00:00 2001 From: ebremner <ebremner@uwaterloo.ca> Date: Wed, 9 Jun 2021 19:59:51 -0400 Subject: [PATCH] ISTWCMS-4704: fixing undefined index error --- uw_cfg_common.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uw_cfg_common.module b/uw_cfg_common.module index b44da4c4..8b4c2586 100644 --- a/uw_cfg_common.module +++ b/uw_cfg_common.module @@ -287,7 +287,9 @@ function uw_cfg_common_preprocess_node(&$variables) { // If the layout builder style is set to full width, then set // 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. $variables['attributes']['class'][] = 'uw-section-has-full-width'; -- GitLab