diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 24d880e2d2b87a83fea234958e1570397b209a2d..6754d25608f320fd7a425b843c67275ce0f12ccc 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -1507,7 +1507,8 @@ class Doku_Handler_Block { if (!$this->inParagraph) return; // look back if there was any content - we don't want empty paragraphs $content = ''; - for($i=count($this->calls)-1; $i>=0; $i--){ + $ccount = count($this->calls); + for($i=$ccount-1; $i>=0; $i--){ if($this->calls[$i][0] == 'p_open'){ break; }elseif($this->calls[$i][0] == 'cdata'){