noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 01/20: PHP Compatibility 8.1


From: dwm
Subject: [Noalyss-commit] [noalyss] 01/20: PHP Compatibility 8.1
Date: Sun, 10 Dec 2023 03:22:22 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 479306c564eeae9a681b4675cac8f7ab7852f60d
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Wed Sep 20 14:13:18 2023 +0200

    PHP Compatibility 8.1
---
 include/tfpdf/tfpdf.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/tfpdf/tfpdf.php b/include/tfpdf/tfpdf.php
index 6000a9fb2..17f135b90 100644
--- a/include/tfpdf/tfpdf.php
+++ b/include/tfpdf/tfpdf.php
@@ -2257,14 +2257,14 @@ function UTF8ToUTF16BE($str, $setbom=true) {
        if ($setbom) {
                $outstr .= "\xFE\xFF"; // Byte Order Mark (BOM)
        }
-       $outstr .= mb_convert_encoding($str, 'UTF-16BE', 'UTF-8');
+       $outstr .= mb_convert_encoding($str??"", 'UTF-16BE', 'UTF-8');
        return $outstr;
 }
 
 // Converts UTF-8 strings to codepoints array
 function UTF8StringToArray($str) {
    $out = array();
-   $len = strlen($str);
+   $len = strlen($str??"");
    for ($i = 0; $i < $len; $i++) {
        $uni = -1;
       $h = ord($str[$i]);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]