]> git.mxchange.org Git - friendica.git/commitdiff
Avoid a warning when a feed contains no items.
authorMichael Vogel <icarus@dabo.de>
Wed, 14 Oct 2015 06:10:06 +0000 (08:10 +0200)
committerMichael Vogel <icarus@dabo.de>
Wed, 14 Oct 2015 06:10:06 +0000 (08:10 +0200)
include/feed.php

index f11bb52a1bf4dd3e8153cef2a9971c5250dcc6a0..e66f279a9ba742e264b4f5e94cb437eba2fda98a 100644 (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;