Commit 84313a7a authored by Bart Vullings's avatar Bart Vullings

ZP-1319 Caldav empty DESCRIPTION, also check asbody body. Released under the...

ZP-1319 Caldav empty DESCRIPTION, also check asbody body. Released under the Affero GNU General Public License (AGPL) version 3.
parent ef6b8e1d
......@@ -1086,7 +1086,10 @@ class BackendCalDAV extends BackendDiff {
$vevent->AddProperty("DESCRIPTION", $data->body);
}
if (isset($data->asbody->data)) {
$vevent->AddProperty("DESCRIPTION", stream_get_contents($data->asbody->data));
$asbody = stream_get_contents($data->asbody->data);
if (strlen($asbody) > 0){
$vevent->AddProperty("DESCRIPTION", $asbody);
}
}
if (isset($data->categories) && is_array($data->categories)) {
$vevent->AddProperty("CATEGORIES", implode(",", $data->categories));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment