X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flostpass.php;h=1ffe000be2c26d655e6ba5a12111a5f912802c86;hb=b5d2d32b443f7aa8ec6e0e91f36da3cc0a0f2a82;hp=01e0006e9533a42ed993e3e146000e311c4d0b7c;hpb=e6cd5a4d663c74213a572a5528c32f721b677c9e;p=friendica.git diff --git a/mod/lostpass.php b/mod/lostpass.php index 01e0006e95..1ffe000be2 100644 --- a/mod/lostpass.php +++ b/mod/lostpass.php @@ -1,6 +1,6 @@ redirect(); } @@ -92,8 +92,8 @@ function lostpass_post(App $a) function lostpass_content(App $a) { - if ($a->argc > 1) { - $pwdreset_token = $a->argv[1]; + if (DI::args()->getArgc() > 1) { + $pwdreset_token = DI::args()->getArgv()[1]; $user = DBA::selectFirst('user', ['uid', 'username', 'nickname', 'email', 'pwdreset_time', 'language'], ['pwdreset' => hash('sha256', $pwdreset_token)]); if (!DBA::isResult($user)) {