Check for no longer existing calendars

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-01-11 09:46:55 +01:00 committed by Backportbot
parent 6be08ad0de
commit a719325a17
1 changed files with 8 additions and 0 deletions

View File

@ -74,6 +74,10 @@ class RemoveClassifiedEventActivity implements IRepairStep {
$result = $query->execute();
while ($row = $result->fetch()) {
if ($row['principaluri'] === null) {
continue;
}
$delete->setParameter('owner', $this->getPrincipal($row['principaluri']))
->setParameter('type', 'calendar')
->setParameter('calendar_id', $row['calendarid'])
@ -104,6 +108,10 @@ class RemoveClassifiedEventActivity implements IRepairStep {
$result = $query->execute();
while ($row = $result->fetch()) {
if ($row['principaluri'] === null) {
continue;
}
$delete->setParameter('owner', $this->getPrincipal($row['principaluri']))
->setParameter('type', 'calendar')
->setParameter('calendar_id', $row['calendarid'])