]> source.dussan.org Git - nextcloud-server.git/commitdiff
return boolean in Ciose::stream_seek
authorJörn Friedrich Dreyer <jfd@butonic.de>
Mon, 22 Sep 2014 09:33:55 +0000 (11:33 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Mon, 22 Sep 2014 09:33:55 +0000 (11:33 +0200)
lib/private/files/stream/close.php

index 0e1f088fcf98f0203a205cd2263bda1fb55709e9..97e45e37ad76b3690f2c961284810ec08fb1b60f 100644 (file)
@@ -29,7 +29,7 @@ class Close {
        }
 
        public function stream_seek($offset, $whence = SEEK_SET) {
-               fseek($this->source, $offset, $whence);
+               return fseek($this->source, $offset, $whence) === 0;
        }
 
        public function stream_tell() {