Avoid a warning when a feed contains no items.
This commit is contained in:
parent
a961c29d05
commit
65228e37bb
1 changed files with 2 additions and 0 deletions
|
@ -120,6 +120,8 @@ function feed_import($xml,$importer,&$contact, &$hub) {
|
||||||
if (!is_object($entries))
|
if (!is_object($entries))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
$entrylist = array();
|
||||||
|
|
||||||
foreach ($entries AS $entry)
|
foreach ($entries AS $entry)
|
||||||
$entrylist[] = $entry;
|
$entrylist[] = $entry;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue