mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Simplified null check
This commit is contained in:
parent
4a6d33e182
commit
8a5560ec8f
7 changed files with 14 additions and 14 deletions
|
@ -44,7 +44,7 @@ class Directory extends BaseApi
|
|||
{
|
||||
$offset = (int)!isset($_REQUEST['offset']) ? 0 : $_REQUEST['offset'];
|
||||
$limit = (int)!isset($_REQUEST['limit']) ? 40 : $_REQUEST['limit'];
|
||||
$order = !isset($_REQUEST['order']) ? 'active' : $_REQUEST['order'];
|
||||
$order = $_REQUEST['order'] ?? 'active';
|
||||
$local = (bool)!isset($_REQUEST['local']) ? false : ($_REQUEST['local'] == 'true');
|
||||
|
||||
Logger::info('directory', ['offset' => $offset, 'limit' => $limit, 'order' => $order, 'local' => $local]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue