summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-05-24 23:48:56 +0300
committerAndrew Dolgov <[email protected]>2017-05-24 23:48:56 +0300
commit8c4529e9c4e2816742310e026b1d096ada9a1d45 (patch)
tree4be1aa60b28629628baf01b89b33f72008e7b42b
parentf025e8e46e34221efc19e9b5ed1a53f7f0ec2b49 (diff)
json feed: enclosure is not an arrayjsonfeed-test-branch
-rw-r--r--classes/feeditem/json.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/feeditem/json.php b/classes/feeditem/json.php
index c9ecd59e4..be41edb38 100644
--- a/classes/feeditem/json.php
+++ b/classes/feeditem/json.php
@@ -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;
}
-} \ No newline at end of file
+}