From 65228e37bb6b75cf2e28c938792ee1560a247c8c Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 14 Oct 2015 08:10:06 +0200 Subject: [PATCH] Avoid a warning when a feed contains no items. --- include/feed.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/feed.php b/include/feed.php index f11bb52a1b..e66f279a9b 100644 --- a/include/feed.php +++ b/include/feed.php @@ -120,6 +120,8 @@ function feed_import($xml,$importer,&$contact, &$hub) { if (!is_object($entries)) return; + $entrylist = array(); + foreach ($entries AS $entry) $entrylist[] = $entry;