mirror of
https://github.com/friendica/friendica
synced 2025-04-19 09:50:11 +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,8 +28,8 @@ class Magic extends BaseModule
|
|||
|
||||
Logger::log('args: ' . print_r($_REQUEST, true), Logger::DATA);
|
||||
|
||||
$addr = defaults($_REQUEST, 'addr', '');
|
||||
$dest = defaults($_REQUEST, 'dest', '');
|
||||
$addr = $_REQUEST['addr'] ?? '';
|
||||
$dest = $_REQUEST['dest'] ?? '';
|
||||
$test = (!empty($_REQUEST['test']) ? intval($_REQUEST['test']) : 0);
|
||||
$owa = (!empty($_REQUEST['owa']) ? intval($_REQUEST['owa']) : 0);
|
||||
$cid = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue