Skip to content
Snippets Groups Projects
Commit a52af954 authored by Alex Barth's avatar Alex Barth
Browse files

#701432 pounard, Will White: PHP 5.3: array_shift() expects parameter 1 to be...

#701432 pounard, Will White: PHP 5.3: array_shift() expects parameter 1 to be array, null given in (...).
parent 2a6ac6ab
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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']);
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment