Merge pull request #13508 from nextcloud/backport/13503/stable13
[stable13] RemoveClassifiedEventActivity: check if calendar still exists
This commit is contained in:
commit
fabcb1ff2c
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue