summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-10-15 13:16:37 +0200
committerAndreas Gohr <andi@splitbrain.org>2011-10-15 13:16:37 +0200
commita284275484f42c92beaac76c05a80e66d3ab3026 (patch)
treec3a8906a0f65c54d9b8eb6173702312df94ef6f7 /inc/parser
parent6ed8c51115355a80e8364d924183b53011f3f1bb (diff)
downloadrpg-a284275484f42c92beaac76c05a80e66d3ab3026.tar.gz
rpg-a284275484f42c92beaac76c05a80e66d3ab3026.tar.bz2
fix off-by-one error
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/handler.php2
1 files changed, 1 insertions, 1 deletions
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;