diff options
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 9ae192ff5d6..75824468559 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -316,7 +316,7 @@ class ShareAPIController extends OCSController { $result = \OC::$server->getContactsManager()->search($query, [$property]); foreach ($result as $r) { foreach ($r[$property] as $value) { - if ($value === $query) { + if ($value === $query && $r['FN']) { return $r['FN']; } } |