Check for no longer existing calendars
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
0b3d91c0b8
commit
404099c678
|
@ -75,6 +75,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'])
|
||||
|
@ -105,6 +109,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'])
|
||||
|
|
Loading…
Reference in New Issue