mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 14:41:50 +01:00
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();
|
$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
|
// copy properties (eg. file comment), if there are any and evtl. existing old properties
|
||||||
$props = self::propfind($from,null);
|
$props = self::propfind($from,null);
|
||||||
|
if(!$props)
|
||||||
|
{
|
||||||
|
$props = array();
|
||||||
|
}
|
||||||
foreach($old_props as $prop)
|
foreach($old_props as $prop)
|
||||||
{
|
{
|
||||||
if (!self::find_prop($props,$prop))
|
if (!self::find_prop($props,$prop))
|
||||||
|
Loading…
Reference in New Issue
Block a user