From 618adb15937843db854a6cc8e7888dad3e81e8a4 Mon Sep 17 00:00:00 2001 From: Friendika Date: Fri, 7 Jan 2011 14:31:05 -0800 Subject: [PATCH] missing 'else' --- include/items.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/items.php b/include/items.php index 61bc0c5d7..3901dc2ae 100644 --- a/include/items.php +++ b/include/items.php @@ -931,9 +931,13 @@ function consume_feed($xml,$importer,$contact, &$hub, $datedir = 0) { // Now process the feed if($feed->get_item_quantity()) { + // in inverse date order if ($datedir) $items = array_reverse($feed->get_items()); + else + $items = $feed->get_items(); + foreach($items as $item) { $deleted = false;