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:
commit
ef2d08ec0d
|
@ -687,6 +687,10 @@
|
|||
|
||||
public static function strlen($str)
|
||||
{
|
||||
if ($str === null) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return iconv_strlen($str, 'UTF-8');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue