mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02: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']);
|
||||||
unset($object_data['receiver'][-1]);
|
|
||||||
unset($object_data['reception_type'][-1]);
|
if (array_key_exists(-1, $object_data['receiver'])) {
|
||||||
|
unset($object_data['receiver'][-1]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (array_key_exists(-1, $object_data['reception_type'])) {
|
||||||
|
unset($object_data['reception_type'][-1]);
|
||||||
|
}
|
||||||
|
|
||||||
return $object_data;
|
return $object_data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue