Sometimes there's no text content, so pad the array (thanks mrvdb)

mrvdb used '' rather than null for the padding argument. MMN-o changed that.
This commit is contained in:
Mikael Nordfeldth 2013-09-24 00:12:30 +02:00
parent 9d3abc3600
commit 4015a58d1c
1 changed files with 1 additions and 1 deletions

View File

@ -762,7 +762,7 @@ class ActivityObject
// @fixme there's no way here to make a tree; elements can only contain plaintext
// @fixme these may collide with JSON extensions
foreach ($this->extra as $el) {
list($extraTag, $attrs, $content) = $el;
list($extraTag, $attrs, $content) = array_pad($el, 3, null);
$xo->element($extraTag, $attrs, $content);
}