diff --git a/htdocs/adherents/index.php b/htdocs/adherents/index.php
index 4a4724593e4..33afa113078 100644
--- a/htdocs/adherents/index.php
+++ b/htdocs/adherents/index.php
@@ -193,11 +193,11 @@ if ($conf->use_javascript_ajax) {
$boxgraph .='
| '.$langs->trans("Statistics").' |
';
$boxgraph .='| ';
- $SommeA = 0;
- $SommeB = 0;
+ $SumToValidate = 0;
+ $SumValidated = 0;
- $SommeC = 0;
- $SommeD = 0;
+ $SumUpToDate = 0;
+ $SumResiliated = 0;
$total = 0;
$dataval = array();
$i = 0;
@@ -206,18 +206,18 @@ if ($conf->use_javascript_ajax) {
$dataval['notuptodate'][] = array($i, isset($MembersValidated[$key]) ? $MembersValidated[$key] - (isset($MembersUpToDate[$key]) ? $MembersUpToDate[$key] : 0) : 0);
$dataval['uptodate'][] = array($i, isset($MembersUpToDate[$key]) ? $MembersUpToDate[$key] : 0);
$dataval['resiliated'][] = array($i, isset($MembersResiliated[$key]) ? $MembersResiliated[$key] : 0);
- $SommeA += isset($MembersToValidate[$key]) ? $MembersToValidate[$key] : 0;
- $SommeB += isset($MembersValidated[$key]) ? $MembersValidated[$key] - (isset($MembersUpToDate[$key]) ? $MembersUpToDate[$key] : 0) : 0;
- $SommeC += isset($MembersUpToDate[$key]) ? $MembersUpToDate[$key] : 0;
- $SommeD += isset($MembersResiliated[$key]) ? $MembersResiliated[$key] : 0;
+ $SumToValidate += isset($MembersToValidate[$key]) ? $MembersToValidate[$key] : 0;
+ $SumValidated += isset($MembersValidated[$key]) ? $MembersValidated[$key] - (isset($MembersUpToDate[$key]) ? $MembersUpToDate[$key] : 0) : 0;
+ $SumUpToDate += isset($MembersUpToDate[$key]) ? $MembersUpToDate[$key] : 0;
+ $SumResiliated += isset($MembersResiliated[$key]) ? $MembersResiliated[$key] : 0;
$i++;
}
- $total = $SommeA + $SommeB + $SommeC + $SommeD;
+ $total = $SumToValidate + $SumValidated + $SumUpToDate + $SumResiliated;
$dataseries = array();
- $dataseries[] = array($langs->transnoentitiesnoconv("OutOfDate"), round($SommeB));
- $dataseries[] = array($langs->transnoentitiesnoconv("UpToDate"), round($SommeC));
- $dataseries[] = array($langs->transnoentitiesnoconv("MembersStatusResiliated"), round($SommeD));
- $dataseries[] = array($langs->transnoentitiesnoconv("MembersStatusToValid"), round($SommeA));
+ $dataseries[] = array($langs->transnoentitiesnoconv("OutOfDate"), round($SumValidated));
+ $dataseries[] = array($langs->transnoentitiesnoconv("UpToDate"), round($SumUpToDate));
+ $dataseries[] = array($langs->transnoentitiesnoconv("MembersStatusResiliated"), round($SumResiliated));
+ $dataseries[] = array($langs->transnoentitiesnoconv("MembersStatusToValid"), round($SumToValidate));
include DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/theme_vars.inc.php';
@@ -234,7 +234,7 @@ if ($conf->use_javascript_ajax) {
$boxgraph .= ' |
';
$boxgraph .= '| '.$langs->trans("Total").' | ';
- $boxgraph .= $SommeA + $SommeB + $SommeC + $SommeD;
+ $boxgraph .= $SumToValidate + $SumValidated + $SumUpToDate + $SumResiliated;
$boxgraph .= ' |
';
$boxgraph .= '';
$boxgraph .= '';
@@ -484,10 +484,10 @@ foreach ($AdherentType as $key => $adhtype) {
}
print '';
print '| '.$langs->trans("Total").' | ';
-print ''.$SommeA.' '.$staticmember->LibStatut(-1, $adhtype->subscription, 0, 3).' | ';
-print ''.$SommeB.' '.$staticmember->LibStatut(1, $adhtype->subscription, 0, 3).' | ';
-print ''.$SommeC.' '.$staticmember->LibStatut(1, $adhtype->subscription, $now, 3).' | ';
-print ''.$SommeD.' '.$staticmember->LibStatut(0, $adhtype->subscription, 0, 3).' | ';
+print ''.$SumToValidate.' '.$staticmember->LibStatut(-1, $adhtype->subscription, 0, 3).' | ';
+print ''.$SumValidated.' '.$staticmember->LibStatut(1, $adhtype->subscription, 0, 3).' | ';
+print ''.$SumUpToDate.' '.$staticmember->LibStatut(1, $adhtype->subscription, $now, 3).' | ';
+print ''.$SumResiliated.' '.$staticmember->LibStatut(0, $adhtype->subscription, 0, 3).' | ';
print '
';
print "\n";