fix color being filled to type 0 with php8 (#389)

This commit is contained in:
sakarikl 2021-07-10 10:02:30 +03:00 committed by GitHub
parent 2dfe16d413
commit c58fe0c63a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4025,7 +4025,7 @@ class TCPDF {
}
}
$this->ColorFlag = ($this->FillColor != $this->TextColor);
if (($type != 'text') AND ($this->state == 2)) {
if (($type != 'text') AND ($this->state == 2) AND $type !== 0) {
if (!$ret) {
$this->_out($pdfcolor);
}