diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php
index 13f894d078a..2709d08d4be 100644
--- a/htdocs/adherents/fiche.php
+++ b/htdocs/adherents/fiche.php
@@ -69,6 +69,7 @@ if ($_POST["action"] == 'confirm_sendinfo' && $_POST["confirm"] == 'yes')
}
}
+/*
if ($_POST["action"] == 'cotisation')
{
$adh->id = $rowid;
@@ -137,6 +138,7 @@ if ($_POST["action"] == 'cotisation')
}
}
}
+*/
if ($_REQUEST["action"] == 'update' && ! $_POST["cancel"])
{
@@ -376,7 +378,8 @@ if ($_POST["action"] == 'add')
{
$db->rollback();
- $message='
";
print '| '.img_object($langs->trans("ShowType"),"group").' '.$adhtype->libelle.' | ';
- print ''.(isset($AdherentsAValider[$key])?$AdherentsAValider[$key]:'').' '.$staticmember->LibStatut(-1,$adhtype->cotisation,0,3).' | ';
+ print ''.(isset($AdherentsAValider[$key]) && $AdherentsAValider[$key] > 0?$AdherentsAValider[$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 ''.(isset($Cotisants[$key]) && $Cotisants[$key] > 0 ? $Cotisants[$key]:'').' '.$staticmember->LibStatut(1,$adhtype->cotisation,mktime(),3).' | ';
+ print ''.(isset($AdherentsResilies[$key]) && $AdherentsResilies[$key]> 0 ?$AdherentsResilies[$key]:'').' '.$staticmember->LibStatut(0,$adhtype->cotisation,0,3).' | ';
print "
\n";
$SommeA+=isset($AdherentsAValider[$key])?$AdherentsAValider[$key]:0;
$SommeB+=isset($Adherents[$key])?$Adherents[$key]-$Cotisants[$key]:0;
diff --git a/htdocs/adherents/liste.php b/htdocs/adherents/liste.php
index f8ce3256eee..3051f8ee3f0 100644
--- a/htdocs/adherents/liste.php
+++ b/htdocs/adherents/liste.php
@@ -179,7 +179,7 @@ if ($result)
print '