From 071769775a57d5ee857e7986b411e54287d10976 Mon Sep 17 00:00:00 2001 From: westhouseit Date: Mon, 22 May 2017 21:12:10 +0100 Subject: [PATCH] Fix for Notice -> Undefined index: F0 Notice happens when using a numberless TOC and breaks local testing. --- tcpdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']);