mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02:00
"- correct handling of depth: 0 in /
- initialise $files['files'] = array() to quiten some warning if propfind returns nothing"
This commit is contained in:
parent
b69b8085e6
commit
dfc7176959
@ -133,7 +133,7 @@ class groupdav extends HTTP_WebDAV_Server
|
|||||||
}
|
}
|
||||||
if ($this->debug > 1) error_log(__CLASS__."::$method: user=$user, app='$app', id=$id");
|
if ($this->debug > 1) error_log(__CLASS__."::$method: user=$user, app='$app', id=$id");
|
||||||
|
|
||||||
$files = array();
|
$files = array('files' => array());
|
||||||
|
|
||||||
if (!$app) // root folder containing apps
|
if (!$app) // root folder containing apps
|
||||||
{
|
{
|
||||||
@ -144,9 +144,11 @@ class groupdav extends HTTP_WebDAV_Server
|
|||||||
self::mkprop('displayname','eGroupWare'),
|
self::mkprop('displayname','eGroupWare'),
|
||||||
self::mkprop('resourcetype','collection'),
|
self::mkprop('resourcetype','collection'),
|
||||||
// adding the calendar extra property (calendar-home-set, etc.) here, allows apple iCal to "autodetect" the URL
|
// adding the calendar extra property (calendar-home-set, etc.) here, allows apple iCal to "autodetect" the URL
|
||||||
self::mkprop(groupdav::CALDAV,'calendar-home-set',$_SERVER['SCRIPT_NAME'].'/calendar/'),
|
self::mkprop(groupdav::CALDAV,'calendar-home-set',$this->base_uri.'/calendar/'),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
if ($options['depth'])
|
||||||
|
{
|
||||||
// principals collection
|
// principals collection
|
||||||
$files['files'][] = array(
|
$files['files'][] = array(
|
||||||
'path' => '/principals/',
|
'path' => '/principals/',
|
||||||
@ -178,6 +180,7 @@ class groupdav extends HTTP_WebDAV_Server
|
|||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!in_array($app,array('principals','groups')) && !$GLOBALS['egw_info']['user']['apps'][$app])
|
if (!in_array($app,array('principals','groups')) && !$GLOBALS['egw_info']['user']['apps'][$app])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user