churchtools / churchtools_basic

ChurchTools 2.0 - Basis-Version
www.churchtools.de
MIT License
15 stars 20 forks source link

error regarding manual repeating dates on startpage #37

Open renarena opened 10 years ago

renarena commented 10 years ago

repeat_id == 999 was not handled in churchcore_db.inc (or .php), so there are "Zu viele Wiederholungen in getAllDatesWithRepeats!" errors in events with repeat_id 999. I added if ($r->repeat_id == CC_MANUAL_REPEATS) { break; }

before
// f.e. each second week is 72 => 14 days else if ($r->repeat_id == 1 || $r->repeat_id == 7) { $repeat = $r->repeat_id \ $r->repeat_frequence; $d->modify("+$repeat days"); $e->modify("+$repeat days"); }

This removes the error but i am not sure if it has the wished function.

Or change something in the while condition?