We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 4015a58d authored by mattl's avatar mattl

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