summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-10-21 16:58:59 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-11-23 09:28:58 +0100
commit008b79d808b7d5f42c0e6072e021ac8fde72d3aa (patch)
tree7acc8998503c895f72b043c3042767d6db3141b1 /lib/private/Collaboration
parent3a1b3745eb8e43eaa830bdeb9fe53a2de70349f0 (diff)
downloadnextcloud-server-008b79d808b7d5f42c0e6072e021ac8fde72d3aa.tar.gz
nextcloud-server-008b79d808b7d5f42c0e6072e021ac8fde72d3aa.zip
Fix type errors
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r--lib/private/Collaboration/Collaborators/UserPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Collaborators/UserPlugin.php b/lib/private/Collaboration/Collaborators/UserPlugin.php
index 9ed94082f0d..1c00bb26c94 100644
--- a/lib/private/Collaboration/Collaborators/UserPlugin.php
+++ b/lib/private/Collaboration/Collaborators/UserPlugin.php
@@ -178,7 +178,7 @@ class UserPlugin implements ISearchPlugin {
$this->shareeEnumerationFullMatch &&
$lowerSearch !== '' && (strtolower($uid) === $lowerSearch ||
strtolower($userDisplayName) === $lowerSearch ||
- strtolower($userEmail) === $lowerSearch)
+ strtolower($userEmail ?? '') === $lowerSearch)
) {
if (strtolower($uid) === $lowerSearch) {
$foundUserById = true;