diff --git a/htdocs/don/card.php b/htdocs/don/card.php index ac12c46b879..43f675ea0e9 100644 --- a/htdocs/don/card.php +++ b/htdocs/don/card.php @@ -3,7 +3,7 @@ * Copyright (C) 2004-2015 Laurent Destailleur * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2013 Florian Henry - * Copyright (C) 2015 Alexandre Spangaro + * Copyright (C) 2015-2016 Alexandre Spangaro * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -680,7 +680,7 @@ if (! empty($id) && $action != 'edit') $projettmp=new Project($db); $projettmp->id=$object->fk_projet; $projettmp->ref=$object->project; - print $projettmp->getNomUrl(1); + if(! empty($object->fk_projet)) print $projettmp->getNomUrl(1); print ''; print ''; }