From ed03390733bd766b87a35e935076221233c261d0 Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Fri, 17 Dec 2021 18:57:56 +0000
Subject: [PATCH] ISTWCMS-4534: fixing undefined index error

---
 uw_cfg_common.module | 1 +
 1 file changed, 1 insertion(+)

diff --git a/uw_cfg_common.module b/uw_cfg_common.module
index e2ec1473..7f14a5fc 100644
--- a/uw_cfg_common.module
+++ b/uw_cfg_common.module
@@ -770,6 +770,7 @@ function uw_cfg_common_preprocess_responsive_image(&$variables) {
     // If we are on a contact image, remove all styles
     // but those for portraits.
     if (
+      isset($media_lib_parameters['bundle']) &&
       $media_lib_parameters['bundle'] == 'uw_ct_contact' ||
       end($current_path_parts) == 'uw_ct_contact'
     ) {
-- 
GitLab