dont avoid empty fields, as some are required by vCard, eg. FN

This commit is contained in:
Ralf Becker 2008-07-04 11:22:25 +00:00
parent acefa266b4
commit 4296d0c31f

View File

@ -801,10 +801,7 @@ class Horde_iCalendar {
. $this->_quotedPrintableEncode($value)
. $this->_newline;
} else {
# JVL: prevent : for empty values
# $attr_string = "$name$params_str:$value";
$attr_string = "$name$params_str";
$attr_string .= (!empty($value)) ? ":$value" : ';';
$attr_string = "$name$params_str:$value";
$result .= $this->_foldLine($attr_string) . $this->_newline;
}