aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--inc/parser/xhtml.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index f40b1c4b7..33fc36882 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -1249,7 +1249,8 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
$title = $reference;
}
}
- list($src, $hash) = explode('#', $src, 2);
+ // Squelch the warning in case there is no hash in the URL
+ @list($src, $hash) = explode('#', $src, 2);
$noLink = false;
if($src == '') {
// only output plaintext without link if there is no src