From 642d7473a812043bf0e403afa55f6a9ef13ca5c9 Mon Sep 17 00:00:00 2001 From: aspangaro <alexandre.spangaro@gmail.com> Date: Mon, 21 Mar 2016 12:59:30 +0100 Subject: [PATCH] FIX: Donation || Don't show project icon if fk_project is empty --- htdocs/don/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 <eldy@users.sourceforge.net> * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com> * Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro> - * Copyright (C) 2015 Alexandre Spangaro <aspangaro.dolibarr@gmail.com> + * Copyright (C) 2015-2016 Alexandre Spangaro <aspangaro.dolibarr@gmail.com> * * 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 '</td>'; print '</tr>'; } -- GitLab