diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php index d73ff6638b..64490554b5 100644 --- a/lib/private/files/storage/wrapper/encryption.php +++ b/lib/private/files/storage/wrapper/encryption.php @@ -365,7 +365,10 @@ class Encryption extends Wrapper { */ public function getLocalFile($path) { if ($this->encryptionManager->isEnabled()) { - return $this->getCachedFile($path); + $cachedFile = $this->getCachedFile($path); + if (is_string($cachedFile)) { + return $cachedFile; + } } return $this->storage->getLocalFile($path); }