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))