diff --git a/classes/booking_option.php b/classes/booking_option.php index 64f2ba865..dad4b7647 100755 --- a/classes/booking_option.php +++ b/classes/booking_option.php @@ -3125,7 +3125,8 @@ public static function return_cancel_until_date($optionid) { $allowupdatedays--; // We set 00:00 of the previous day. $datestring = "midnight - $allowupdatedays days"; } else { - $allowupdatedays = abs($allowupdatedays); // We set 00:00 of the next day. + $allowupdatedays++; // We set 00:00 of the next day. + $allowupdatedays = abs($allowupdatedays); $datestring = "midnight + $allowupdatedays days"; } $canceluntil = strtotime($datestring, $starttime);