From 5b0f19af8158984619f20aeffb5b8a0231cfecc2 Mon Sep 17 00:00:00 2001 From: Jack Bates Date: Tue, 18 Apr 2006 03:22:12 +0000 Subject: * Moved iCalendar parsing function into it's own class, complete with offsets support * Fixed bug with $depth < 'infinity' * TODO If this parser works & has all necessary features, add documentation --- caldav.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'caldav.php') diff --git a/caldav.php b/caldav.php index d9c7ebc..a9485b4 100644 --- a/caldav.php +++ b/caldav.php @@ -168,7 +168,8 @@ class HTTP_CalDAV_Server_PHPiCalendar extends HTTP_CalDAV_Server { if (is_dir($absolutePath)) { $file['props'][] = $this->mkprop('resourcetype', 'collection'); - if ($depth < $options['depth']) { + if ($depth < $options['depth'] || + $options['depth'] == 'infinity') { $handle = opendir($absolutePath); if (!$handle) { return; @@ -230,7 +231,8 @@ class HTTP_CalDAV_Server_PHPiCalendar extends HTTP_CalDAV_Server { if (is_dir($absolutePath)) { $file['props'][] = $this->mkprop('resourcetype', 'collection'); - if ($depth < $options['depth']) { + if ($depth < $options['depth'] || + $options['depth'] == 'infinity') { $handle = opendir($absolutePath); if (!$handle) { return; -- cgit v1.2.3