diff --git a/tcpdf.php b/tcpdf.php index 65196e7..29b39ce 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -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']);