mirror of
https://github.com/friendica/friendica
synced 2025-04-26 07:50:15 +00:00
Replace deprecated defaults() calls by ?? and ?: operators in src/Module/
This commit is contained in:
parent
8998926e5b
commit
f59ea2af55
40 changed files with 115 additions and 94 deletions
|
@ -28,7 +28,7 @@ class Contacts extends BaseModule
|
|||
|
||||
//@TODO: Get value from router parameters
|
||||
$nickname = $a->argv[1];
|
||||
$type = defaults($a->argv, 3, 'all');
|
||||
$type = ($a->argv[3] ?? '') ?: 'all';
|
||||
|
||||
Nav::setSelected('home');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue