mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-03-21 22:49:39 +01:00
Fix for Notice -> Undefined index: F0
Notice happens when using a numberless TOC and breaks local testing.
This commit is contained in:
parent
95c5938aaf
commit
071769775a
@ -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']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user