fix off-by-one error
This commit is contained in:
parent
6ed8c51115
commit
a284275484
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue