Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-06-02 09:11:19 +0300
committerdartcafe <github@dartcafe.de>2021-06-02 09:11:19 +0300
commit234fad2164d966b4dfc75a3b1a97bedaef5721f5 (patch)
treeb69fda50502f653ed9f304a2b67bb3afb3a8b6a3 /lib/Model/Contact.php
parenta92b54328a472a55008ea8e7b74d85760fcc213a (diff)
Workaround #1681
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib/Model/Contact.php')
-rw-r--r--lib/Model/Contact.php5
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];