Merge pull request #29 from EngineGPDev/Deprecated-iconv_strlen()-Passing-null-to-parameter-#1-($string)-of-type-string-is-deprecated-in-C-MyPrograms-OSPanel-domains-enginegp.local-system-library-system.php-on-line-690

Deprecated: iconv_strlen(): Passing null to parameter #1 ($string) of…
This commit is contained in:
Sergei Solovev 2023-03-13 01:28:52 +03:00 committed by GitHub
commit ef2d08ec0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -687,6 +687,10 @@
public static function strlen($str)
{
if ($str === null) {
return 0;
}
return iconv_strlen($str, 'UTF-8');
}