X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flostpass.php;h=6aa76e0cc6c4ee45d9d0bfd3a06e52055283f1e3;hb=2a2e1a9e1271a85165fb6116999bca2fe1a71327;hp=877b67f243cc682771da2dba78b8093950d437f5;hpb=38a5358bfa646ae13a4a1a385741890fa88d9b7f;p=friendica.git diff --git a/mod/lostpass.php b/mod/lostpass.php index 877b67f243..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)) {