aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-04-27 15:23:14 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-04-30 12:04:02 +0200
commit4a6808a0f4ea1a441599627fca6679513c93af95 (patch)
tree50b1ed3d55b1dc4788178d6828efbce3a9f54922 /apps/encryption/lib
parentcf4a6874fb3b699e4d2ca85e2a6aa68f9288a609 (diff)
downloadnextcloud-server-4a6808a0f4ea1a441599627fca6679513c93af95.tar.gz
nextcloud-server-4a6808a0f4ea1a441599627fca6679513c93af95.zip
Simplify the test
Diffstat (limited to 'apps/encryption/lib')
-rw-r--r--apps/encryption/lib/crypto/encryption.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/encryption/lib/crypto/encryption.php b/apps/encryption/lib/crypto/encryption.php
index 0fb6f257f31..29fda09e87f 100644
--- a/apps/encryption/lib/crypto/encryption.php
+++ b/apps/encryption/lib/crypto/encryption.php
@@ -179,8 +179,10 @@ class Encryption implements IEncryptionModule {
try {
$publicKeys[$uid] = $this->keyManager->getPublicKey($uid);
} catch (PublicKeyMissingException $e) {
- $this->logger->warning('no public key found for user \'' . $uid .
- '\', user will not be able to read the file', array('app' => 'encryption'));
+ $this->logger->warning(
+ 'no public key found for user "{uid}", user will not be able to read the file',
+ ['app' => 'encryption', 'uid' => $uid]
+ );
// if the public key of the owner is missing we should fail
if ($uid === $this->user) {
throw $e;