@@ -321,7 +321,7 @@ class Subscription extends ActiveRecordCommon | |||
] ; | |||
$nbDays = (strtotime($date) - strtotime($this->date_begin)) / (24 * 60 * 60); | |||
if ($nbDays % ($this->week_frequency * 7) < 7) { | |||
if (round($nbDays) % ($this->week_frequency * 7) < 7) { | |||
$numDay = date('N', strtotime($date)); | |||
$day = $arrayDays[$numDay] ; | |||
if ($this->$day) { |