fix some warnings php8 (#26346)

Co-authored-by: Hystepik <lucas.marcouiller@gmail.com>
This commit is contained in:
Lucas Marcouiller
2023-10-26 12:37:18 +02:00
committed by GitHub
parent 3697580d7a
commit af17b767c0
5 changed files with 5 additions and 5 deletions

View File

@@ -6162,7 +6162,7 @@ abstract class CommonObject
//var_dump('key '.$key.' '.$value.' type='.$extrafields->attributes[$this->table_element]['type'][$key].' '.$this->array_options["options_".$key]);
}
if (!empty($extrafields->attributes[$this->table_element]['type'][$key]) && $extrafields->attributes[$this->table_element]['type'][$key] == 'password') {
if (preg_match('/^dolcrypt:/', $value)) {
if (!empty($value) && preg_match('/^dolcrypt:/', $value)) {
$this->array_options["options_".$key] = dolDecrypt($value);
}
}