mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-03-21 22:49:39 +01:00
fix PHP Warning: chr() expects parameter 1 to be int
This commit is contained in:
parent
b0948269a6
commit
e2deae00e5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user