]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Completing extra-element-without-text patch from 4015a58d1cfaa257fcf2b01aa6b1c9daa268c997
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 23 Sep 2013 23:26:18 +0000 (01:26 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 23 Sep 2013 23:26:51 +0000 (01:26 +0200)
lib/activityobject.php

index e4b22dd23b364b1030045f50a98705709cfc452b..ad7e636696fc6070590c5e5001cf578b406e1dfd 100644 (file)
@@ -888,7 +888,7 @@ class ActivityObject
             // @fixme text content from XML extensions will be lost
 
             foreach ($this->extra as $e) {
-                list($objectName, $props, $txt) = $e;
+                list($objectName, $props, $txt) = array_pad($e, 3, null);
                 if (!empty($objectName)) {
                     $parts = explode(":", $objectName);
                     if (count($parts) == 2 && $parts[0] == "statusnet") {