diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-10-15 11:32:17 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-10-15 11:32:17 +0200 |
commit | faba9a3522d0d79f3d6172e15804bc23c1215ddf (patch) | |
tree | a6ace8e0f6abc7090ca1a5ed7b139f9442a591c9 /inc/parser/handler.php | |
parent | a86cc527f2653a972a7416116630b5be5c3e380c (diff) | |
download | dokuwiki-faba9a3522d0d79f3d6172e15804bc23c1215ddf.tar.gz dokuwiki-faba9a3522d0d79f3d6172e15804bc23c1215ddf.zip |
added the missing bit to my last commit
Diffstat (limited to 'inc/parser/handler.php')
-rw-r--r-- | inc/parser/handler.php | 3 |
1 files changed, 2 insertions, 1 deletions
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'){ |