From 38f1c2b76b22c25a063dbb391353e969f5fd468d Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 30 May 2016 10:12:54 -0600 Subject: [PATCH] Avoid error if file has no props --- api/src/Vfs.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/src/Vfs.php b/api/src/Vfs.php index 44ce055213..a635e96e58 100644 --- a/api/src/Vfs.php +++ b/api/src/Vfs.php @@ -191,7 +191,10 @@ class Vfs extends Vfs\StreamWrapper $old_props = self::file_exists($to) ? self::propfind($to,null) : array(); // copy properties (eg. file comment), if there are any and evtl. existing old properties $props = self::propfind($from,null); - + if(!$props) + { + $props = array(); + } foreach($old_props as $prop) { if (!self::find_prop($props,$prop))