2
0
forked from Wavyzz/dolibarr

FIX avoid php8 warnings

This commit is contained in:
Regis Houssin
2023-03-26 11:10:46 +02:00
parent e247337fc2
commit 148d88a7ec
2 changed files with 4 additions and 4 deletions

View File

@@ -267,9 +267,9 @@ function dol_verifyHash($chain, $hash, $type = '0')
if ($type == '0' && !empty($conf->global->MAIN_SECURITY_HASH_ALGO) && $conf->global->MAIN_SECURITY_HASH_ALGO == 'password_hash' && function_exists('password_verify')) {
if (! empty($hash[0]) && $hash[0] == '$') {
return password_verify($chain, $hash);
} elseif (strlen($hash) == 32) {
} elseif (dol_strlen($hash) == 32) {
return dol_verifyHash($chain, $hash, '3'); // md5
} elseif (strlen($hash) == 40) {
} elseif (dol_strlen($hash) == 40) {
return dol_verifyHash($chain, $hash, '2'); // sha1md5
}