diff --git a/web/mrbs_sql.inc b/web/mrbs_sql.inc index 76e6a13be..1b24813eb 100644 --- a/web/mrbs_sql.inc +++ b/web/mrbs_sql.inc @@ -1391,22 +1391,6 @@ function mrbsCreateRepeatEntry(array $data) } -function trimToEndOfMonth(&$month, &$day, &$year) -{ - // Make the month valid so that we can use checkdate() - while ($month > 12) - { - $month -= 12; - $year++; - } - // Make the date valid if day is more than number of days in month: - while (!checkdate($month, $day, $year) && ($day > 1)) - { - $day--; - } -} - - /** mrbsCreateRepeatingEntrys() * * Creates a repeat entry in the database + all the repeating entries