From d1038c6d650f8833e30a79efe0814f64ace32ba9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 14 Apr 2015 17:25:51 +0000 Subject: [PATCH] need to return stat array --- api/src/Vfs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Vfs.php b/api/src/Vfs.php index e344396fc8..8b7f4c5c14 100644 --- a/api/src/Vfs.php +++ b/api/src/Vfs.php @@ -2092,7 +2092,7 @@ class Vfs extends Vfs\StreamWrapper { $ret = ($dest = self::fopen($target, 'w')) && stream_copy_to_stream($tmp_name, $dest) !== false && - fclose($dest) && self::stat($target); + fclose($dest) ? self::stat($target) : false; fclose($tmp_name); }