forked from extern/egroupware
"- 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");
|
||||
|
||||
$files = array();
|
||||
$files = array('files' => array());
|
||||
|
||||
if (!$app) // root folder containing apps
|
||||
{
|
||||
@ -144,9 +144,11 @@ class groupdav extends HTTP_WebDAV_Server
|
||||
self::mkprop('displayname','eGroupWare'),
|
||||
self::mkprop('resourcetype','collection'),
|
||||
// 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
|
||||
$files['files'][] = array(
|
||||
'path' => '/principals/',
|
||||
@ -178,6 +180,7 @@ class groupdav extends HTTP_WebDAV_Server
|
||||
)),
|
||||
);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (!in_array($app,array('principals','groups')) && !$GLOBALS['egw_info']['user']['apps'][$app])
|
||||
|
Loading…
Reference in New Issue
Block a user