mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-04-20 22:12:32 +02:00
Fixing undefined offset error in writeHTML() when last DOM element has display:none (#496)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
This commit is contained in:
parent
a089447257
commit
ff83da807a
@ -17370,6 +17370,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
||||
++$key;
|
||||
}
|
||||
}
|
||||
if ($key == $maxel) break;
|
||||
if ($dom[$key]['tag'] AND isset($dom[$key]['attribute']['pagebreak'])) {
|
||||
// check for pagebreak
|
||||
if (($dom[$key]['attribute']['pagebreak'] == 'true') OR ($dom[$key]['attribute']['pagebreak'] == 'left') OR ($dom[$key]['attribute']['pagebreak'] == 'right')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user