Fix warnings in Receiver.php

This commit is contained in:
Art4 2024-11-04 11:58:08 +00:00
parent 3a8058ec09
commit 9ae7b9cf01

View file

@ -1896,8 +1896,14 @@ class Receiver
} }
$object_data['unlisted'] = in_array(-1, $object_data['receiver']); $object_data['unlisted'] = in_array(-1, $object_data['receiver']);
if (array_key_exists(-1, $object_data['receiver'])) {
unset($object_data['receiver'][-1]); unset($object_data['receiver'][-1]);
}
if (array_key_exists(-1, $object_data['reception_type'])) {
unset($object_data['reception_type'][-1]); unset($object_data['reception_type'][-1]);
}
return $object_data; return $object_data;
} }