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";