diff --git a/lib/Collaboration/v2/CollaboratorSearchPlugin.php b/lib/Collaboration/v2/CollaboratorSearchPlugin.php index 256a489db..345b408ff 100644 --- a/lib/Collaboration/v2/CollaboratorSearchPlugin.php +++ b/lib/Collaboration/v2/CollaboratorSearchPlugin.php @@ -97,8 +97,9 @@ public function search($search, $limit, $offset, ISearchResult $searchResult): b $fromFrontEnd = true; // TODO: remove this, using a cleaner way to detect the source of the request - $shareType = $this->request->getParam('shareType'); - if (in_array(IShare::TYPE_ROOM, $shareType)) { + $params = $this->request->getParams(); + $shareType = $this->getArray('shareType', $params); + if (empty($shareType) || in_array(IShare::TYPE_ROOM, $shareType)) { $fromFrontEnd = false; }