Loading lib/Db/WebmailMapper.php +5 −2 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ class WebmailMapper { $emails = []; while ($row = $result->fetch()) { $users[] = (string) $row['rl_email']; $emails[] = (string) $row['rl_email']; } return $emails; } Loading @@ -85,6 +85,9 @@ class WebmailMapper { private function createCloudAddressBook(array $contacts, string $email) { $users = $this->userManager->getByEmail($email); if (empty($users)) { return; } $user = $users[0]; if (!$user instanceof IUser) { Loading Loading @@ -135,7 +138,7 @@ class WebmailMapper { true ); } catch (Throwable $e) { $this->logger->error('Error inserting contact for user: ' . $username . ' contact: ' . $contact->serialize() . ' ' . $e->getMessage()); $this->logger->error('Error inserting contact for user: ' . $username . ' ' . $e->getMessage()); } } } Loading Loading
lib/Db/WebmailMapper.php +5 −2 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ class WebmailMapper { $emails = []; while ($row = $result->fetch()) { $users[] = (string) $row['rl_email']; $emails[] = (string) $row['rl_email']; } return $emails; } Loading @@ -85,6 +85,9 @@ class WebmailMapper { private function createCloudAddressBook(array $contacts, string $email) { $users = $this->userManager->getByEmail($email); if (empty($users)) { return; } $user = $users[0]; if (!$user instanceof IUser) { Loading Loading @@ -135,7 +138,7 @@ class WebmailMapper { true ); } catch (Throwable $e) { $this->logger->error('Error inserting contact for user: ' . $username . ' contact: ' . $contact->serialize() . ' ' . $e->getMessage()); $this->logger->error('Error inserting contact for user: ' . $username . ' ' . $e->getMessage()); } } } Loading