From f5a36bcee139f4b38f0b8b4b86845b8e4dbee64f Mon Sep 17 00:00:00 2001 From: bach Date: Thu, 24 Jun 2021 13:45:19 +0200 Subject: [PATCH] php notice fixe --- web/themes/custom/popsu/popsu.theme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/themes/custom/popsu/popsu.theme b/web/themes/custom/popsu/popsu.theme index 063e20c1..651be413 100644 --- a/web/themes/custom/popsu/popsu.theme +++ b/web/themes/custom/popsu/popsu.theme @@ -85,8 +85,8 @@ function popsu_preprocess_views_view_field(&$variables){ // add new classes to the url (without overwriting existing once) $options = $url->getOptions(); - if($attributes = $options['attributes']){ - if($classes = $attributes['class']){ + if(isset($options['attributes']) && $attributes = $options['attributes']){ + if(isset($attributes['class']) && $classes = $attributes['class']){ $attributes['class'] += $new_classes; }else{ $attributes['class'] = $new_classes;