aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Encryption
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-05-24 10:24:21 +0200
committerVincent Petry <pvince81@owncloud.com>2016-05-30 14:49:27 +0200
commit1423cf1d9d2b855d44aa74267c7ff84e8bc5b00c (patch)
tree987e48e73393afc30d469d7bda1cf1f1858da63b /lib/private/Encryption
parentfd4f9091fdad984b34626da7a8d9d37a00d7482f (diff)
downloadnextcloud-server-1423cf1d9d2b855d44aa74267c7ff84e8bc5b00c.tar.gz
nextcloud-server-1423cf1d9d2b855d44aa74267c7ff84e8bc5b00c.zip
Use isEncrpyted() instead
Diffstat (limited to 'lib/private/Encryption')
-rw-r--r--lib/private/Encryption/DecryptAll.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Encryption/DecryptAll.php b/lib/private/Encryption/DecryptAll.php
index 904a247e41c..8676bc09575 100644
--- a/lib/private/Encryption/DecryptAll.php
+++ b/lib/private/Encryption/DecryptAll.php
@@ -214,7 +214,7 @@ class DecryptAll {
try {
$progress->setMessage("decrypt files for user $userCount: $path");
$progress->advance();
- if ((int)$file->getData()['encrypted'] === 0) {
+ if ($file->isEncrypted() === false) {
$progress->setMessage("decrypt files for user $userCount: $path (already decrypted)");
$progress->advance();
} else {