churchtools / churchtools_basic

ChurchTools 2.0 - Basis-Version

Home Page:www.churchtools.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error regarding manual repeating dates on startpage

renarena opened this issue · comments

commented

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 7*2 => 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?