set size and unencrypted size to zero on fopen

This commit is contained in:
Bjoern Schiessle 2015-04-20 10:47:40 +02:00
parent 1a894bd0d8
commit 7fe0e09d14
1 changed files with 2 additions and 3 deletions

View File

@ -223,9 +223,8 @@ class Encryption extends Wrapper {
|| $mode === 'wb+' || $mode === 'wb+'
) { ) {
// We're writing a new file so start write counter with 0 bytes // We're writing a new file so start write counter with 0 bytes
// TODO can we remove this completely? $this->unencryptedSize = 0;
//$this->unencryptedSize = 0; $this->size = 0;
//$this->size = 0;
$this->readOnly = false; $this->readOnly = false;
} else { } else {
$this->readOnly = true; $this->readOnly = true;