diff options
author | dartcafe <github@dartcafe.de> | 2021-06-02 09:11:19 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-06-02 09:11:19 +0300 |
commit | 234fad2164d966b4dfc75a3b1a97bedaef5721f5 (patch) | |
tree | b69fda50502f653ed9f304a2b67bb3afb3a8b6a3 /lib/Model/Contact.php | |
parent | a92b54328a472a55008ea8e7b74d85760fcc213a (diff) |
Workaround #1681
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib/Model/Contact.php')
-rw-r--r-- | lib/Model/Contact.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Model/Contact.php b/lib/Model/Contact.php index 31bf2f5a..80af82bb 100644 --- a/lib/Model/Contact.php +++ b/lib/Model/Contact.php @@ -79,8 +79,11 @@ class Contact extends UserGroupClass { private function loadContact(): void { $contacts = self::listRaw($this->id, ['UID', 'FN']); + // workaround fur multiple found UIDs + // Don't throw an error, log the error and take the first entry if (count($contacts) > 1) { - throw new MultipleContactsFound('Multiple contacts found for id ' . $this->id); + // throw new MultipleContactsFound('Multiple contacts found for id ' . $this->id); + \OC::$server->getLogger()->error('Multiple contacts found for id ' . $this->id); } $this->contact = $contacts[0]; |