aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php4
1 files changed, 4 insertions, 0 deletions
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;