diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-24 14:51:18 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-24 14:51:18 +0200 |
commit | 594a31d260451d237a864f9f679c14c17d183ad4 (patch) | |
tree | c8571bbae7c84616ccda190343152f687cf62b3d /apps | |
parent | c11bfa91775152788430b417e15c927d618f55d6 (diff) | |
parent | 90f1e3dc94bc10ce4d2290dda730d5726fb13f17 (diff) | |
download | nextcloud-server-594a31d260451d237a864f9f679c14c17d183ad4.tar.gz nextcloud-server-594a31d260451d237a864f9f679c14c17d183ad4.zip |
Merge pull request #19341 from owncloud/enc_all_improved_messages
no need to list users if all users already had a key-pair
Diffstat (limited to 'apps')
-rw-r--r-- | apps/encryption/lib/crypto/encryptall.php | 6 |
1 files changed, 6 insertions, 0 deletions
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(); |