Fix wrong array reference.

This commit is contained in:
Andrew McMillan 2011-10-10 22:26:33 +02:00
parent 5067d50215
commit 1327fee9a8

View File

@ -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;
}
}