From faba9a3522d0d79f3d6172e15804bc23c1215ddf Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 15 Oct 2011 11:32:17 +0200 Subject: added the missing bit to my last commit --- inc/parser/handler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 24d880e2d..6754d2560 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'){ -- cgit v1.2.3