diff --git a/footnote2.php b/footnote2.php index 1d81791..addbf20 100644 --- a/footnote2.php +++ b/footnote2.php @@ -83,7 +83,7 @@ function Footnote($m) { } $fnid = $fngroup . '_' . $fncount; - $out = ($fn_str_parts[2] != '' && $fntext[$fncount] == '#') ? '' : "[$fncount]"; + $out = (isset($fn_str_parts[2]) && $fn_str_parts[2] != '' && $fntext[$fncount] == '#') ? '' : "[$fncount]"; global $FootnoteBacklinkCharacter; if ($fn_str != '') { $fntext[$fncount] = "
\n" .