diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php index 37e8556e1b..e7f077f402 100644 --- a/lib/private/Share20/DefaultShareProvider.php +++ b/lib/private/Share20/DefaultShareProvider.php @@ -1187,6 +1187,9 @@ class DefaultShareProvider implements IShareProvider { $qb->expr()->eq('uid_initiator', $qb->createNamedParameter($uid)) ) ); + } else { + \OC::$server->getLogger()->logException(new \InvalidArgumentException('Default share provider tried to delete all shares for type: ' . $shareType)); + return; } $qb->execute();