Use isEncrpyted() instead

This commit is contained in:
Vincent Petry 2016-05-24 10:24:21 +02:00
parent fd4f9091fd
commit 1423cf1d9d
No known key found for this signature in database
GPG Key ID: AF8F9EFC56562186
1 changed files with 1 additions and 1 deletions

View File

@ -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 {