- $object_data['actor'] can be null, but Receiver::getReceivers()'s 2nd
  parameter expect it to be string
This commit is contained in:
Roland Häder 2022-06-16 20:47:59 +02:00
parent 33768ea1c6
commit 5c9ce790bf

View file

@ -1768,7 +1768,7 @@ class Receiver
$object_data['question'] = self::processQuestion($object);
}
$receiverdata = self::getReceivers($object, $object_data['actor'], $object_data['tags'], true);
$receiverdata = self::getReceivers($object, $object_data['actor'] ?? '', $object_data['tags'], true);
$receivers = $reception_types = [];
foreach ($receiverdata as $key => $data) {
$receivers[$key] = $data['uid'];