diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index 30b13bc3007..2b10f0c2f26 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2016 Laurent Destailleur + * Copyright (C) 2004-2017 Laurent Destailleur * Copyright (C) 2005 Simon TOSSER * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2010-2013 Juanjo Menent @@ -1396,7 +1396,11 @@ if ($id > 0) { include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; print ''.$langs->trans("LinkedObject").''; - print ''.dolGetElementUrl($object->fk_element,$object->elementtype,1).''; + $link=dolGetElementUrl($object->fk_element,$object->elementtype,1); + print ''; + if (empty($link)) print ''.$langs->trans("ObjectDeleted").''; + else print $link; + print ''; } // Description