Skip to content

Commit eb210c4

Browse files
committed
Fixed issue with undefined array element.
1 parent 055ea38 commit eb210c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

html/docs/include/basic.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ function add_links( $text )
2929
$text = preg_replace_callback(
3030
'/\[FEAT:([^\]]*?)(#.*)?\]/',
3131
function($matches) {
32+
if (!array_key_exists(2, $matches)) {
33+
$matches[2] = '';
34+
}
3235
return "<a href='/docs/{$matches[1]}{$matches[2]}'>". $GLOBALS['features'][$matches[1]][0] . '</a>';
3336
},
3437
$text

0 commit comments

Comments
 (0)