Don't add content as title for notes

This commit is contained in:
Evan Prodromou
2013-06-04 19:52:38 -04:00
parent fa6138195b
commit 736bc9cc96
2 changed files with 7 additions and 2 deletions

View File

@@ -589,7 +589,13 @@ class Activity
} else {
$xs->element('id', null, $this->id);
$xs->element('title', null, $this->title);
if ($this->title) {
$xs->element('title', null, $this->title);
} else {
// Require element
$xs->element('title', null, "");
}
$xs->element('content', array('type' => 'html'), $this->content);