|
@@ -50,7 +50,7 @@ $result = restrictedArea($user, 'adherent', '', '', 'cotisation');
|
|
|
$year = dol_print_date(dol_now('gmt'), "%Y", 'gmt');
|
|
|
$startyear = $year - (!getDolGlobalInt('MAIN_STATS_GRAPHS_SHOW_N_YEARS') ? 2 : max(1, min(10, getDolGlobalInt('MAIN_STATS_GRAPHS_SHOW_N_YEARS'))));
|
|
|
$endyear = $year;
|
|
|
-if (!empty(getDolGlobalString('MEMBER_SUBSCRIPTION_START_AFTER')) ) {
|
|
|
+if (getDolGlobalString('MEMBER_SUBSCRIPTION_START_AFTER')) {
|
|
|
$endyear = dol_print_date(dol_time_plus_duree(dol_now('gmt'), (int) substr(getDolGlobalString('MEMBER_SUBSCRIPTION_START_AFTER'), 0, -1), substr(getDolGlobalString('MEMBER_SUBSCRIPTION_START_AFTER'), -1)), "%Y", 'gmt');
|
|
|
}
|
|
|
|