diff --git a/inc/parser/handler.php b/inc/parser/handler.php index fd4304ba5a57e6336901ad92fce210b819b27845..55b715ad9d258d6e05829058fd53fba5878a808d 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; $x>$i; $x--) array_pop($this->calls); }else{ // remove ending linebreaks in the paragraph $i=count($this->calls)-1;