From 6a763d0db0eec4917f780d06444e24ddf22bebfa Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 11 Feb 2007 16:41:47 +0000 Subject: [PATCH] Look: On affiche pas valeur si 0 --- htdocs/adherents/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/adherents/index.php b/htdocs/adherents/index.php index 3ae52ebeee8..85e8bf12bd9 100644 --- a/htdocs/adherents/index.php +++ b/htdocs/adherents/index.php @@ -135,7 +135,7 @@ foreach ($AdherentType as $key => $adhtype) print ""; print ''.img_object($langs->trans("ShowType"),"group").' '.$adhtype->libelle.''; print ''.(isset($AdherentsAValider[$key])?$AdherentsAValider[$key]:'').' '.$staticmember->LibStatut(-1,$adhtype->cotisation,0,3).''; - print ''.(isset($Adherents[$key])?$Adherents[$key]-$Cotisants[$key]:'').' '.$staticmember->LibStatut(1,$adhtype->cotisation,0,3).''; + print ''.(isset($Adherents[$key]) && ($Adherents[$key]-$Cotisants[$key] > 0) ? $Adherents[$key]-$Cotisants[$key]:'').' '.$staticmember->LibStatut(1,$adhtype->cotisation,0,3).''; print ''.(isset($Cotisants[$key])?$Cotisants[$key]:'').' '.$staticmember->LibStatut(1,$adhtype->cotisation,mktime(),3).''; print ''.(isset($AdherentsResilies[$key])?$AdherentsResilies[$key]:'').' '.$staticmember->LibStatut(0,$adhtype->cotisation,0,3).''; print "\n";