summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/parser/handler.php3
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'){