From 1423cf1d9d2b855d44aa74267c7ff84e8bc5b00c Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 24 May 2016 10:24:21 +0200 Subject: [PATCH] Use isEncrpyted() instead --- lib/private/Encryption/DecryptAll.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Encryption/DecryptAll.php b/lib/private/Encryption/DecryptAll.php index 904a247e41..8676bc0957 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 {