Fix for Notice -> Undefined index: F0

Notice happens when using a numberless TOC and breaks local testing.
This commit is contained in:
westhouseit 2017-05-22 21:12:10 +01:00 committed by GitHub
parent 95c5938aaf
commit 071769775a

View File

@ -21511,7 +21511,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
} else {
// placemark to be replaced with the correct number
$pagenum = '{#'.($outline['p']).'}';
if ($templates['F'.$outline['l']]) {
if (isset($templates['F'.$outline['l']]) && $templates['F'.$outline['l']]) {
$pagenum = '{'.$pagenum.'}';
}
$maxpage = max($maxpage, $outline['p']);