Parcourir la source

php notice fixe

bach il y a 2 ans
Parent
commit
89fa5af3ac
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      web/themes/custom/popsu/popsu.theme

+ 1 - 1
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