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
1 changed files with 1 additions and 1 deletions

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