fix problem with encryption flag not being saved correctly in the filecache

This commit is contained in:
Robin Appelman 2012-06-18 18:17:49 +02:00
parent e6384251eb
commit debd9c8dfb
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class OC_CryptStream{
public function stream_close(){ public function stream_close(){
$this->flush(); $this->flush();
if($this->meta['mode']!='r' and $this->meta['mode']!='rb'){ if($this->meta['mode']!='r' and $this->meta['mode']!='rb'){
OC_FileCache::put($this->path,array('encrypted'=>true)); OC_FileCache::put($this->path,array('encrypted'=>true),'');
} }
return fclose($this->source); return fclose($this->source);
} }