fixing unencrypted file size

This commit is contained in:
Thomas Müller 2015-04-01 17:42:56 +02:00
parent a74ee67476
commit 9d8c07850d
1 changed files with 4 additions and 1 deletions

View File

@ -88,8 +88,11 @@ class Encryption extends Wrapper {
$info = $this->getCache()->get($path);
if (isset($this->unencryptedSize[$fullPath]) && isset($info['fileid'])) {
if (isset($this->unencryptedSize[$fullPath])) {
$size = $this->unencryptedSize[$fullPath];
}
if (isset($info['fileid'])) {
$info['encrypted'] = true;
$info['size'] = $size;
$this->getCache()->put($path, $info);