json feed: enclosure is not an array

This commit is contained in:
Andrew Dolgov 2017-05-24 23:48:56 +03:00
parent f025e8e46e
commit 8c4529e9c4
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}
}
}