]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Sometimes there's no text content, so pad the array (thanks mrvdb)
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 23 Sep 2013 22:12:30 +0000 (00:12 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 23 Sep 2013 22:12:30 +0000 (00:12 +0200)
mrvdb used '' rather than null for the padding argument. MMN-o changed that.

lib/activityobject.php

index 741aefdd6bb4e4f01767bc3ebd4eff4184c2bbb4..e4b22dd23b364b1030045f50a98705709cfc452b 100644 (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);
             }