Merge pull request #1963 from annando/1510-feed-warning

Avoid a warning when a feed contains no items.
This commit is contained in:
Tobias Diekershoff 2015-10-14 08:49:02 +02:00
commit c855c9ba67
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,8 @@ function feed_import($xml,$importer,&$contact, &$hub) {
if (!is_object($entries))
return;
$entrylist = array();
foreach ($entries AS $entry)
$entrylist[] = $entry;