mirror of
https://github.com/friendica/friendica
synced 2025-04-24 11:10:18 +00:00
Simplified null check
This commit is contained in:
parent
4a6d33e182
commit
8a5560ec8f
7 changed files with 14 additions and 14 deletions
|
@ -63,7 +63,7 @@ class Notifications extends BaseApi
|
|||
$limit = (int)!isset($_REQUEST['limit']) ? 20 : $_REQUEST['limit'];
|
||||
|
||||
// Array of types to exclude (follow, favourite, reblog, mention, poll, follow_request)
|
||||
$exclude_types = !isset($_REQUEST['exclude_types']) ? [] : $_REQUEST['exclude_types'];
|
||||
$exclude_types = $_REQUEST['exclude_types'] ?? [];
|
||||
|
||||
// Return only notifications received from this account
|
||||
$account_id = (int)!isset($_REQUEST['account_id']) ? 0 : $_REQUEST['account_id'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue