Correctly search for existing collaboration results

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-10-25 10:38:26 +02:00
parent db1096bcfd
commit 42c84b6309
No known key found for this signature in database
GPG key ID: E166FD8976B3BAC8

View file

@ -64,8 +64,10 @@ class SearchResult implements ISearchResult {
$resultArrays = [$this->result['exact'][$type], $this->result[$type]];
foreach($resultArrays as $resultArray) {
if ($resultArray['value']['shareWith'] === $collaboratorId) {
return true;
foreach ($resultArray as $result) {
if ($result['value']['shareWith'] === $collaboratorId) {
return true;
}
}
}