Browse Source

Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 14.0

Laurent Destailleur 3 years ago
parent
commit
88d8f73614
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/adherents/subscription.php

+ 1 - 1
htdocs/adherents/subscription.php

@@ -943,7 +943,7 @@ if ($rowid > 0) {
 		}
 		if (!$datefrom) {
 			$datefrom = $object->datevalid;
-			if ($object->datefin > 0 && dol_time_plus_duree($object->datefin, $defaultdelay, $defaultdelayunit) < dol_now()) {
+			if ($object->datefin > 0 && dol_time_plus_duree($object->datefin, $defaultdelay, $defaultdelayunit) > dol_now()) {
 				$datefrom = dol_time_plus_duree($object->datefin, 1, 'd');
 			} else {
 				$datefrom = dol_get_first_day(dol_print_date(time(), "%Y"));