diff options
author | Jack Bates <jablko@users.sourceforge.net> | 2006-04-18 03:22:12 +0000 |
---|---|---|
committer | Jack Bates <jablko@users.sourceforge.net> | 2006-04-18 03:22:12 +0000 |
commit | 5b0f19af8158984619f20aeffb5b8a0231cfecc2 (patch) | |
tree | 337becbf23cd5734e2acb72e2d24c88f8a5a6bf2 /caldav.php | |
parent | 40e077eb346693da15662632a90e5df0ff305046 (diff) | |
download | phpicalendar-5b0f19af8158984619f20aeffb5b8a0231cfecc2.tar.gz phpicalendar-5b0f19af8158984619f20aeffb5b8a0231cfecc2.tar.bz2 phpicalendar-5b0f19af8158984619f20aeffb5b8a0231cfecc2.zip |
* 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
Diffstat (limited to 'caldav.php')
-rw-r--r-- | caldav.php | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |