From b2a412b0811b6d7fc402255e208b043ea95b79de Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Sun, 24 Sep 2006 12:13:29 +0200
Subject: [PATCH] fix for reversed RSS feeds #918

darcs-hash:20060924101329-7ad00-acff05b813c58ac7ddb98385c9970800af7aca6b.gz
---
 inc/parser/xhtml.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index d896d8eab..c805dae70 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -794,7 +794,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
             $mod = -1;
             $start = $feed->get_item_quantity()-1;
             $end   = $start - ($params['max']);
-            $end   = ($end < 0) ? 0 : $end;
+            $end   = ($end < -1) ? -1 : $end;
         }else{
             $mod   = 1;
             $start = 0;
-- 
GitLab