Only return cached files if existing

This commit is contained in:
Thomas Müller 2015-05-06 11:16:44 +02:00
parent a96c2b8354
commit 35a2fd3f89
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}