From e2deae00e5ac436560667d6afe1fe2bac3ec8859 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 13 Sep 2019 11:23:30 +0200 Subject: [PATCH] fix PHP Warning: chr() expects parameter 1 to be int --- include/tcpdf_fonts.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/tcpdf_fonts.php b/include/tcpdf_fonts.php index 9242ca4..218fb6d 100644 --- a/include/tcpdf_fonts.php +++ b/include/tcpdf_fonts.php @@ -1664,6 +1664,7 @@ class TCPDF_FONTS { * @public static */ public static function unichr($c, $unicode=true) { + $c = intval($c); if (!$unicode) { return chr($c); } elseif ($c <= 0x7F) {