summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/parser/xhtml.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index fdf384a62..102958c9d 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -516,7 +516,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
//keep hash anchor
list($id,$hash) = explode('#',$id,2);
- $hash = $this->_headerToLink($hash);
+ if(!empty($hash)) $hash = $this->_headerToLink($hash);
//prepare for formating
$link['target'] = $conf['target']['wiki'];