summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 3ac8ed35c..b6cc49cba 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -63,6 +63,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
*/
protected function finishSectionEdit($end) {
list($id, $start, $type, $title) = array_pop($this->sectionedits);
+ if ($end <= $start) {
+ return;
+ }
$this->doc .= "<!-- EDIT$id " . strtoupper($type) . ' ';
if (!is_null($title)) {
$this->doc .= '"' . str_replace('"', '', $title) . '" ';