2
0
forked from Wavyzz/dolibarr

Fix warning

This commit is contained in:
Laurent Destailleur
2022-10-10 23:08:25 +02:00
parent 201b774d6d
commit 9660e9f0e0
2 changed files with 6 additions and 2 deletions

View File

@@ -3828,6 +3828,10 @@ function isValidPhone($phone)
*/
function dol_strlen($string, $stringencoding = 'UTF-8')
{
if (is_null($string)) {
return 0;
}
if (function_exists('mb_strlen')) {
return mb_strlen($string, $stringencoding);
} else {