diff --git a/htdocs/core/tpl/card_presend.tpl.php b/htdocs/core/tpl/card_presend.tpl.php index 479b4b694aa..d9097ee0919 100644 --- a/htdocs/core/tpl/card_presend.tpl.php +++ b/htdocs/core/tpl/card_presend.tpl.php @@ -180,7 +180,7 @@ if ($action == 'presend') } else { - if (!empty($object->socid) && empty($object->thirdparty)) { + if (!empty($object->socid) && empty($object->thirdparty) && method_exists($object, 'fetch_thirdparty')) { $object->fetch_thirdparty(); } if (is_object($object->thirdparty))