Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable15] RemoveClassifiedEventActivity: check if calendar still exists #13506

Merged
merged 1 commit into from Jan 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions apps/dav/lib/Migration/RemoveClassifiedEventActivity.php
Expand Up @@ -75,6 +75,10 @@ protected function removePrivateEventActivity(): int {
$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'])
Expand Down Expand Up @@ -105,6 +109,10 @@ protected function removeConfidentialUncensoredEventActivity(): int {
$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'])
Expand Down