mirror of
https://github.com/friendica/friendica
synced 2025-04-24 01:50:17 +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
|
@ -36,7 +36,7 @@ class Like extends BaseModule
|
|||
|
||||
// Decide how to return. If we were called with a 'return' argument,
|
||||
// then redirect back to the calling page. If not, just quietly end
|
||||
$returnPath = defaults($_REQUEST, 'return', '');
|
||||
$returnPath = $_REQUEST['return'] ?? '';
|
||||
|
||||
if (!empty($returnPath)) {
|
||||
$rand = '_=' . time();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue