Skip to content

Commit 7ca7c82

Browse files
committed
Resolved deprecation notice regarding deprecated strlen() of null-value in Write() function
1 parent e1e2ade commit 7ca7c82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tcpdf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6422,7 +6422,7 @@ public function getStringHeight($w, $txt, $reseth=false, $autopadding=true, $cel
64226422
public function Write($h, $txt, $link='', $fill=false, $align='', $ln=false, $stretch=0, $firstline=false, $firstblock=false, $maxh=0, $wadj=0, $margin=null) {
64236423
// check page for no-write regions and adapt page margins if necessary
64246424
list($this->x, $this->y) = $this->checkPageRegions($h, $this->x, $this->y);
6425-
if (strlen($txt) == 0) {
6425+
if (strlen($txt ?? '') == 0) {
64266426
// fix empty text
64276427
$txt = ' ';
64286428
}

0 commit comments

Comments
 (0)