1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-12 21:45:56 +00:00

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

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