diff --git a/includes/FeedsBatch.inc b/includes/FeedsBatch.inc index c39ffd21652bf649ca461c1b5f594e17942df263..95f15b6e30cbdef15a41ac3f9ced7d6ebf2362cf 100644 --- a/includes/FeedsBatch.inc +++ b/includes/FeedsBatch.inc @@ -133,6 +133,9 @@ class FeedsImportBatch { /** * Set items. + * + * @param $items + * An array of the items in the feed. Cannot be NULL. */ public function setItems($items) { $this->items = $items; diff --git a/plugins/FeedsSyndicationParser.inc b/plugins/FeedsSyndicationParser.inc index 1561bce211580055629b15453634b7a75a09bbb3..98ab1f0b01aea55b6da194a20095bc65db351d9d 100644 --- a/plugins/FeedsSyndicationParser.inc +++ b/plugins/FeedsSyndicationParser.inc @@ -17,7 +17,9 @@ class FeedsSyndicationParser extends FeedsParser { $batch->setTitle($result['title']); $batch->setDescription($result['description']); $batch->setLink($result['link']); - $batch->setItems($result['items']); + if (is_array($result['items'])) { + $batch->setItems($result['items']); + } } /**