summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-10-15 11:32:17 +0200
committerAndreas Gohr <andi@splitbrain.org>2011-10-15 11:32:17 +0200
commitfaba9a3522d0d79f3d6172e15804bc23c1215ddf (patch)
treea6ace8e0f6abc7090ca1a5ed7b139f9442a591c9
parenta86cc527f2653a972a7416116630b5be5c3e380c (diff)
downloadrpg-faba9a3522d0d79f3d6172e15804bc23c1215ddf.tar.gz
rpg-faba9a3522d0d79f3d6172e15804bc23c1215ddf.tar.bz2
added the missing bit to my last commit
-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'){