forked from GNUsocial/gnu-social
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:
parent
9d3abc3600
commit
4015a58d1c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user