mirror of
https://github.com/friendica/friendica
synced 2025-04-19 07:50:12 +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
|
@ -41,7 +41,7 @@ class Starred extends BaseModule
|
|||
Item::update(['starred' => $starred], ['id' => $itemId]);
|
||||
|
||||
// See if we've been passed a return path to redirect to
|
||||
$returnPath = defaults($_REQUEST, 'return', '');
|
||||
$returnPath = $_REQUEST['return'] ?? '';
|
||||
if ($returnPath) {
|
||||
$rand = '_=' . time();
|
||||
if (strpos($returnPath, '?')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue