X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flostpass.php;h=6aa76e0cc6c4ee45d9d0bfd3a06e52055283f1e3;hb=1eadcb48552ef0ae1f0bae22103c77b21e2ec517;hp=01e0006e9533a42ed993e3e146000e311c4d0b7c;hpb=cb830c9ad3f309636c2bc6e6176ee23684b2869e;p=friendica.git diff --git a/mod/lostpass.php b/mod/lostpass.php index 01e0006e95..6aa76e0cc6 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)) {