Skip to content

Commit e7be5e5

Browse files
authored
Mitigate PHP warning "undefined array key"
Mitigate PHP warning "undefined array key"
1 parent 5bc303a commit e7be5e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function render($format, Doku_Renderer $renderer, $data)
148148
$default = $renderer->_simpleTitle($url);
149149
resolve_pageid(getNS($ID), $url, $exists);
150150
$title = $renderer->_getLinkTitle($title, $default, $isImg, $url);
151-
list($url, $hash) = explode('#', $url, 2);
151+
list($url, $hash) = explode('#', $url, 2) + [1 => null];
152152
if (!empty($hash)) $hash = $renderer->_headerToLink($hash);
153153
$url = wl($url);
154154
if ($hash) $url .= '#' . $hash;

0 commit comments

Comments
 (0)