forked from extern/egroupware
Avoid error if file has no props
This commit is contained in:
parent
b4dfee24ff
commit
38f1c2b76b
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user