Replace deprecated defaults() calls by a combination of ?? and ?: operators in mod/
This commit is contained in:
parent
8998926e5b
commit
2db6171641
32 changed files with 186 additions and 189 deletions
|
@ -6,9 +6,9 @@ use Friendica\Database\DBA;
|
|||
|
||||
function msearch_post(App $a)
|
||||
{
|
||||
$search = defaults($_POST, 's', '');
|
||||
$perpage = intval(defaults($_POST, 'n', 80));
|
||||
$page = intval(defaults($_POST, 'p', 1));
|
||||
$search = $_POST['s'] ?? '';
|
||||
$perpage = intval(($_POST['n'] ?? 0) ?: 80);
|
||||
$page = intval(($_POST['p'] ?? 0) ?: 1);
|
||||
$startrec = ($page - 1) * $perpage;
|
||||
|
||||
$total = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue