From 4015a58d1cfaa257fcf2b01aa6b1c9daa268c997 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 24 Sep 2013 00:12:30 +0200 Subject: [PATCH] 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. --- lib/activityobject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/activityobject.php b/lib/activityobject.php index 741aefdd6b..e4b22dd23b 100644 --- a/lib/activityobject.php +++ b/lib/activityobject.php @@ -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); } -- 2.39.5