diff --git a/class/actions_digiquali.class.php b/class/actions_digiquali.class.php index 8c636e05..ef4f8847 100644 --- a/class/actions_digiquali.class.php +++ b/class/actions_digiquali.class.php @@ -200,7 +200,7 @@ public function printCommonFooter($parameters) if (!empty($linkableElements)) { foreach($linkableElements as $linkableElement) { - if ($linkableElement['link_name'] == $object->element) { + if ($object && $linkableElement['link_name'] == $object->element) { if (strpos($parameters['context'], $linkableElement['hook_name_card']) !== false) { $picto = img_picto('', 'fontawesome_fa-clipboard-check_fas_#d35968', 'class="pictofixedwidth"'); $extrafieldsNames = ['qc_frequency', 'control_history_link'];