Skip to content

error regarding manual repeating dates on startpage #37

@renarena

Description

@renarena

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions