aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-07 14:31:05 -0800
committerFriendika <info@friendika.com>2011-01-07 14:31:05 -0800
commit618adb15937843db854a6cc8e7888dad3e81e8a4 (patch)
tree6f682f0a10839404514364e447becf9c7b75cccd /include/items.php
parent6048d89fd27355f484f534d325ddea68e7b85d8b (diff)
downloadvolse-hubzilla-618adb15937843db854a6cc8e7888dad3e81e8a4.tar.gz
volse-hubzilla-618adb15937843db854a6cc8e7888dad3e81e8a4.tar.bz2
volse-hubzilla-618adb15937843db854a6cc8e7888dad3e81e8a4.zip
missing 'else'
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;