From 8ffa6db110007dc053db0073e14c9374b75a4c16 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Thu, 2 Apr 2015 11:07:07 +0200 Subject: fixing unit tests for stream wrapper --- lib/private/files/stream/encryption.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/files/stream/encryption.php') diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php index 88957825de0..fcc9984500d 100644 --- a/lib/private/files/stream/encryption.php +++ b/lib/private/files/stream/encryption.php @@ -248,7 +248,7 @@ class Encryption extends Wrapper { $result = ''; // skip the header if we read the file from the beginning - if ($this->position === 0 && !empty($this->header)) { + if ($this->position === 0) { parent::stream_read($this->util->getBlockSize()); } -- cgit v1.2.3