From 89fa5af3ac8a4badb6920c6785ea8361e1a4e15c Mon Sep 17 00:00:00 2001 From: bach Date: Thu, 24 Jun 2021 21:05:46 +0200 Subject: [PATCH] php notice fixe --- web/themes/custom/popsu/popsu.theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/themes/custom/popsu/popsu.theme b/web/themes/custom/popsu/popsu.theme index 651be413..077a3410 100644 --- a/web/themes/custom/popsu/popsu.theme +++ b/web/themes/custom/popsu/popsu.theme @@ -66,7 +66,7 @@ function popsu_preprocess_views_view_unformatted(&$variables) { function popsu_preprocess_views_view_field(&$variables){ // check if link to entoty option is true $settings = $variables['field']->options['settings']; - if ($settings['link_to_entity']) { + if (isset($settings['link_to_entity']) && $settings['link_to_entity']) { // get the entity and build the classes $entity = $variables['row']->_entity; // build new classes