diff options
Diffstat (limited to 'lib/private/Collaboration/Collaborators/Search.php')
-rw-r--r-- | lib/private/Collaboration/Collaborators/Search.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Collaborators/Search.php b/lib/private/Collaboration/Collaborators/Search.php index b0ee09356af..8d99ed42fcd 100644 --- a/lib/private/Collaboration/Collaborators/Search.php +++ b/lib/private/Collaboration/Collaborators/Search.php @@ -97,7 +97,7 @@ class Search implements ISearch { // if we have an exact local user match with an email-a-like query, // there is no need to show the remote and email matches. $userType = new SearchResultType('users'); - if (strpos($search, '@') !== false && $searchResult->hasExactIdMatch($userType)) { + if (str_contains($search, '@') && $searchResult->hasExactIdMatch($userType)) { $searchResult->unsetResult($remoteType); $searchResult->unsetResult($emailType); } |