N°7213 - PHP 8.1: Migrate remaining usages of md5() with null value (#608)

* N°7213 - PHP 8.1: Migrate remaining usages of md5() with null value

* Update core/attributedef.class.inc.php
This commit is contained in:
Molkobain
2024-02-14 19:27:14 +01:00
committed by GitHub
parent e4f068a518
commit 922a842e96
2 changed files with 2 additions and 2 deletions

View File

@@ -8542,7 +8542,7 @@ class AttributeBlob extends AttributeDefinition
$sFingerprint = '';
if ($value instanceOf ormDocument)
{
$sFingerprint = md5($value->GetData());
$sFingerprint = $value->GetSignature();
}
return $sFingerprint;

View File

@@ -343,6 +343,6 @@ class ormDocument
*/
public function GetSignature(): string
{
return md5($this->GetData());
return md5($this->GetData() ?? '');
}
}