From: Mikael Nordfeldth Date: Mon, 23 Sep 2013 22:12:30 +0000 (+0200) Subject: Sometimes there's no text content, so pad the array (thanks mrvdb) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4015a58d1cfaa257fcf2b01aa6b1c9daa268c997;p=quix0rs-gnu-social.git 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. --- 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); }