X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flostpass.php;h=455a9b1e2eed697580cd17fb8e4dcfe2b53da43d;hb=9fb4ba2b733d59b8a704cb8df846c3b43769503d;hp=a5ef739cd197564b1e72f9090586009decaa908b;hpb=6b6e3e264f55705d47f20cf32213d8d0f0d24efc;p=friendica.git diff --git a/mod/lostpass.php b/mod/lostpass.php index a5ef739cd1..455a9b1e2e 100644 --- a/mod/lostpass.php +++ b/mod/lostpass.php @@ -4,7 +4,7 @@ require_once('include/email.php'); require_once('include/enotify.php'); require_once('include/text.php'); -function lostpass_post(&$a) { +function lostpass_post(App $a) { $loginame = notags(trim($_POST['login-name'])); if(! $loginame) @@ -77,7 +77,7 @@ function lostpass_post(&$a) { } -function lostpass_content(&$a) { +function lostpass_content(App $a) { if(x($_GET,'verify')) { @@ -102,6 +102,8 @@ function lostpass_content(&$a) { dbesc($new_password_encoded), intval($uid) ); + + /// @TODO Is dbm::is_result() okay here? if ($r) { $tpl = get_markup_template('pwdreset.tpl'); $o .= replace_macros($tpl,array(