There may be several DAV headers (Bug #9251).
authorJan Schneider <jan@horde.org>
Tue, 21 Sep 2010 15:25:25 +0000 (17:25 +0200)
committerJan Schneider <jan@horde.org>
Tue, 21 Sep 2010 15:25:25 +0000 (17:25 +0200)
kronolith/lib/Driver/Ical.php

index dd7578d..6f72ce6 100644 (file)
@@ -584,6 +584,9 @@ class Kronolith_Driver_Ical extends Kronolith_Driver
 
         if ($dav = $response->getHeader('dav')) {
             /* Check for DAV support. */
+            if (is_array($dav)) {
+                $dav = implode (',', $dav);
+            }
             $this->_davSupport = preg_split('/,\s*/', $dav);
             if (!in_array('3', $this->_davSupport)) {
                 throw new Kronolith_Exception(_("This remote server only supports an outdated WebDAV protocol."));