Skip to content
Snippets Groups Projects
Commit a2842754 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fix off-by-one error

parent 6ed8c511
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment