php notice fixe

This commit is contained in:
Bachir Soussi Chiadmi 2021-06-24 21:05:46 +02:00
parent f5a36bcee1
commit 89fa5af3ac

View File

@ -66,7 +66,7 @@ function popsu_preprocess_views_view_unformatted(&$variables) {
function popsu_preprocess_views_view_field(&$variables){ function popsu_preprocess_views_view_field(&$variables){
// check if link to entoty option is true // check if link to entoty option is true
$settings = $variables['field']->options['settings']; $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 // get the entity and build the classes
$entity = $variables['row']->_entity; $entity = $variables['row']->_entity;
// build new classes // build new classes