mirror of
https://github.com/friendica/friendica
synced 2024-11-19 02:23:41 +00:00
Merge pull request #7533 from nupplaphil/bug/friendica-7299
Fixing wrong defaults() usage
This commit is contained in:
commit
77b754862b
1 changed files with 4 additions and 3 deletions
|
@ -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