From 90f1e3dc94bc10ce4d2290dda730d5726fb13f17 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 24 Sep 2015 12:47:46 +0200 Subject: no need to list users if all users already had a key-pair --- apps/encryption/lib/crypto/encryptall.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps') diff --git a/apps/encryption/lib/crypto/encryptall.php b/apps/encryption/lib/crypto/encryptall.php index a0c69c13fdd..8e97fe341b4 100644 --- a/apps/encryption/lib/crypto/encryptall.php +++ b/apps/encryption/lib/crypto/encryptall.php @@ -280,6 +280,12 @@ class EncryptAll { $newPasswords[] = [$uid, $password]; } } + + if (empty($newPasswords)) { + $this->output->writeln("\nAll users already had a key-pair, no further action needed.\n"); + return; + } + $table->setRows($newPasswords); $table->render(); -- cgit v1.2.3