N°6903 - Fix crash when emptying file attribute (eg. picture of a contact)

This commit is contained in:
Molkobain
2023-11-09 18:17:35 +01:00
parent 34ba4fa0ce
commit 2d8ecd465b
2 changed files with 143 additions and 1 deletions

View File

@@ -8599,7 +8599,7 @@ class AttributeBlob extends AttributeDefinition
public function RecordAttChange(DBObject $oObject, $original, $value): void
{
// N°6502 Don't record history if only the download count has changed
if ($original->EqualsExceptDownloadsCount($value)) {
if ((null !== $original) && (null !== $value) && $original->EqualsExceptDownloadsCount($value)) {
return;
}