Replace deprecated defaults() calls by ?? and ?: operators in src/Module/
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user