Update footnote2.php

This commit is contained in:
vulpine 2022-01-31 12:16:53 -05:00 committed by GitHub
parent 5f1933a345
commit d23a632983
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,7 @@ function Footnote($m) {
}
$fnid = $fngroup . '_' . $fncount;
$out = ($fn_str_parts[2] != '' && $fntext[$fncount] == '#') ? '' : "<sup><a class='footnote' id='fnr$fnid' href='#fn$fnid'>[$fncount]</a></sup>";
$out = (isset($fn_str_parts[2]) && $fn_str_parts[2] != '' && $fntext[$fncount] == '#') ? '' : "<sup><a class='footnote' id='fnr$fnid' href='#fn$fnid'>[$fncount]</a></sup>";
global $FootnoteBacklinkCharacter;
if ($fn_str != '') {
$fntext[$fncount] = "<div class='footnote' id='fn$fnid'>\n" .