From: Michael Vogel Date: Wed, 14 Oct 2015 06:10:06 +0000 (+0200) Subject: Avoid a warning when a feed contains no items. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=65228e37bb6b75cf2e28c938792ee1560a247c8c;p=friendica.git Avoid a warning when a feed contains no items. --- 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;