Merge pull request #7533 from nupplaphil/bug/friendica-7299
Fixing wrong defaults() usage
This commit is contained in:
commit
77b754862b
|
@ -20,11 +20,12 @@ class Source extends BaseAdminModule
|
|||
$a = self::getApp();
|
||||
|
||||
$guid = null;
|
||||
if (!empty($a->argv[1])) {
|
||||
$guid = $a->argv[1];
|
||||
// @TODO: Replace with parameter from router
|
||||
if (!empty($a->argv[3])) {
|
||||
$guid = $a->argv[3];
|
||||
}
|
||||
|
||||
$guid = defaults($_REQUEST['guid'], $guid);
|
||||
$guid = $_REQUEST['guid'] ?? $guid;
|
||||
|
||||
$source = '';
|
||||
$item_uri = '';
|
||||
|
|
Loading…
Reference in a new issue