From df2132c0b1a75d5edca5e10b5b11c028f6be4a3a Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 14 Jan 2019 11:21:41 +0100 Subject: [PATCH] Principals can be principal/user/ or principal/ from legacy installs Signed-off-by: Joas Schilling --- apps/dav/lib/Migration/RemoveClassifiedEventActivity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php b/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php index ad840d8100..1829f57237 100644 --- a/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php +++ b/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php @@ -127,6 +127,6 @@ class RemoveClassifiedEventActivity implements IRepairStep { protected function getPrincipal(string $principalUri): string { $uri = explode('/', $principalUri); - return $uri[2]; + return array_pop($uri); } }