Completing extra-element-without-text patch from 4015a58d1c

This commit is contained in:
Mikael Nordfeldth 2013-09-24 01:26:18 +02:00
parent 1c6f9df80e
commit f268c3f877

View 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") {