json feed: enclosure is not an array
This commit is contained in:
parent
f025e8e46e
commit
8c4529e9c4
|
@ -73,9 +73,9 @@ class FeedItem_Json extends FeedItem_Common {
|
|||
|
||||
$enc = new FeedEnclosure();
|
||||
|
||||
$enc->type = $enclosure["mime_type"];
|
||||
$enc->link = $enclosure["url"];
|
||||
@$enc->length = $enclosure["size_in_bytes"];
|
||||
$enc->type = $enclosure->mime_type;
|
||||
$enc->link = $enclosure->url;
|
||||
@$enc->length = $enclosure->size_in_bytes;
|
||||
|
||||
array_push($encs, $enc);
|
||||
|
||||
|
@ -85,4 +85,4 @@ class FeedItem_Json extends FeedItem_Common {
|
|||
return $encs;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue