Loading lib/Db/WebmailMapper.php +6 −4 Original line number Diff line number Diff line Loading @@ -150,13 +150,15 @@ class WebmailMapper { $commandOutput->writeln('Migrating user ' . $userCount . ' with email: '. $user['email']); } $contacts = $this->getUserContacts($user['id']); $commandOutput->writeln('Number of contacts for ' . $user['email'] . ':' . count($contacts)); if (!count($contacts)) { return; $numberOfContacts = count($contacts); if ($commandOutput) { $commandOutput->writeln('Number of contacts for ' . $user['email'] . ':' . $numberOfContacts); } if ($numberOfContacts > 0) { $this->createCloudAddressBook($contacts, $user['email']); } } } private function initConnection() : void { Loading Loading
lib/Db/WebmailMapper.php +6 −4 Original line number Diff line number Diff line Loading @@ -150,13 +150,15 @@ class WebmailMapper { $commandOutput->writeln('Migrating user ' . $userCount . ' with email: '. $user['email']); } $contacts = $this->getUserContacts($user['id']); $commandOutput->writeln('Number of contacts for ' . $user['email'] . ':' . count($contacts)); if (!count($contacts)) { return; $numberOfContacts = count($contacts); if ($commandOutput) { $commandOutput->writeln('Number of contacts for ' . $user['email'] . ':' . $numberOfContacts); } if ($numberOfContacts > 0) { $this->createCloudAddressBook($contacts, $user['email']); } } } private function initConnection() : void { Loading