mirror of
https://github.com/friendica/friendica
synced 2024-11-18 01:03:40 +00:00
Fix warnings in Receiver.php
This commit is contained in:
parent
3a8058ec09
commit
9ae7b9cf01
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue