From 1327fee9a8b3ebf3c02a03c3a12c1e2a54dd1ae1 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 10 Oct 2011 22:26:33 +0200 Subject: [PATCH] Fix wrong array reference. --- inc/CalDAVRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index 3eedab18..70d9a150 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -848,7 +848,7 @@ EOSQL; $type = explode( '/', $this->content_type, 2); /** @todo: Perhaps we should look at the target collection type, also. */ if ( $type[0] == 'text' ) { - if ( !empty($type[2]) && ($type[2] == 'vcard' || $type[2] == 'calendar' || $type[2] == 'x-vcard') ) { + if ( !empty($type[1]) && ($type[1] == 'vcard' || $type[1] == 'calendar' || $type[1] == 'x-vcard') ) { return; } }