diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-03-30 18:28:27 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-03-30 18:28:49 +0000 |
commit | 53c9edc64d2fe936f1f93bd4cb17120abe3bbe89 (patch) | |
tree | 2465189ccf18324cc4c0ec3f285131e7fc8455bb /apps/dav/lib/UserMigration | |
parent | d3505a2ed0c9d258731cdec535f6c28885f7a7ca (diff) | |
download | nextcloud-server-53c9edc64d2fe936f1f93bd4cb17120abe3bbe89.tar.gz nextcloud-server-53c9edc64d2fe936f1f93bd4cb17120abe3bbe89.zip |
Output literal null string
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/dav/lib/UserMigration')
-rw-r--r-- | apps/dav/lib/UserMigration/ContactsMigrator.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/UserMigration/ContactsMigrator.php b/apps/dav/lib/UserMigration/ContactsMigrator.php index 50a2d5f465e..66395173b7a 100644 --- a/apps/dav/lib/UserMigration/ContactsMigrator.php +++ b/apps/dav/lib/UserMigration/ContactsMigrator.php @@ -122,7 +122,7 @@ class ContactsMigrator implements IMigrator { $problems = $vCard->validate(); if (!empty($problems)) { - $output->writeln('Skipping contact "' . ($vCard->FN ?? null) . '" containing invalid contact data'); + $output->writeln('Skipping contact "' . ($vCard->FN ?? 'null') . '" containing invalid contact data'); continue; } $vCards[] = $vCard; @@ -240,7 +240,7 @@ class ContactsMigrator implements IMigrator { $vCard->serialize(), ); } catch (Throwable $e) { - $output->writeln("Error creating contact \"" . ($vCard->FN ?? null) . "\" from \"$filename\", skipping…"); + $output->writeln("Error creating contact \"" . ($vCard->FN ?? 'null') . "\" from \"$filename\", skipping…"); } } @@ -334,7 +334,7 @@ class ContactsMigrator implements IMigrator { while ($vCard = $vCardSplitter->getNext()) { $problems = $vCard->validate(); if (!empty($problems)) { - $output->writeln('Skipping contact "' . ($vCard->FN ?? null) . '" containing invalid contact data'); + $output->writeln('Skipping contact "' . ($vCard->FN ?? 'null') . '" containing invalid contact data'); continue; } $vCards[] = $vCard; |