mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
Prevent casting a non-existent array key before it's been coalesced in Model\GServer
- Address https://github.com/friendica/friendica/issues/13025#issuecomment-1536440077
This commit is contained in:
parent
f673232e53
commit
29329f799d
1 changed files with 1 additions and 1 deletions
|
@ -869,7 +869,7 @@ class GServer
|
|||
}
|
||||
|
||||
// Sanitize incoming data, see https://github.com/friendica/friendica/issues/8565
|
||||
$data['subscribe'] = (bool)$data['subscribe'] ?? false;
|
||||
$data['subscribe'] = (bool)($data['subscribe'] ?? false);
|
||||
|
||||
if (!$data['subscribe'] || empty($data['scope']) || !in_array(strtolower($data['scope']), ['all', 'tags'])) {
|
||||
$data['scope'] = '';
|
||||
|
|
Loading…
Reference in a new issue