summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/parser/xhtml.php2
1 files changed, 1 insertions, 1 deletions
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;