From a284275484f42c92beaac76c05a80e66d3ab3026 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Sat, 15 Oct 2011 13:16:37 +0200 Subject: [PATCH] fix off-by-one error --- inc/parser/handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 6754d2560..fd4304ba5 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -1522,7 +1522,7 @@ class Doku_Handler_Block { if(trim($content)==''){ //remove the whole paragraph //array_splice($this->calls,$i); // <- this is much slower than the loop below - for($x=$ccount-1; $x>=$i; $x--) unset($this->calls[$x]); + for($x=$ccount-1; $x>$i; $x--) unset($this->calls[$x]); }else{ // remove ending linebreaks in the paragraph $i=count($this->calls)-1; -- GitLab