mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-03-25 08:29:43 +01:00
In some cases we want a part of TOC without page number. The patch fixes TOC generation in situations like this.
This commit is contained in:
parent
95c5938aaf
commit
555011ef05
@ -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