diff options
author | Damien Regad <dregad@mantisbt.org> | 2021-01-27 02:29:50 +0100 |
---|---|---|
committer | Damien Regad <dregad@mantisbt.org> | 2021-01-27 02:31:12 +0100 |
commit | c9dd70d11a4295044a397a0e8561d9bd53e26104 (patch) | |
tree | 86256bf3eb85b75c153e4fb9bc78ad86baa33470 | |
parent | 357c9a39cea26bd0aad2cfa051db3c69bb15e0e9 (diff) | |
download | dokuwiki-c9dd70d11a4295044a397a0e8561d9bd53e26104.tar.gz dokuwiki-c9dd70d11a4295044a397a0e8561d9bd53e26104.zip |
Fix Undefined array key in xhtml.php
-rw-r--r-- | inc/parser/xhtml.php | 3 |
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 |