X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Flostpass.php;h=455a9b1e2eed697580cd17fb8e4dcfe2b53da43d;hb=288ad37c3c93bcc3f5f3409be095dba57deab7f4;hp=3174bcd0e0572c1b7b87f3d626f38d767da25f7b;hpb=b9e4b9f2747deb5cdd7d7f68e200496e0c3162aa;p=friendica.git diff --git a/mod/lostpass.php b/mod/lostpass.php index 3174bcd0e0..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(App &$a) { +function lostpass_post(App $a) { $loginame = notags(trim($_POST['login-name'])); if(! $loginame) @@ -77,7 +77,7 @@ function lostpass_post(App &$a) { } -function lostpass_content(App &$a) { +function lostpass_content(App $a) { if(x($_GET,'verify')) { @@ -102,7 +102,9 @@ function lostpass_content(App &$a) { dbesc($new_password_encoded), intval($uid) ); - if($r) { + + /// @TODO Is dbm::is_result() okay here? + if ($r) { $tpl = get_markup_template('pwdreset.tpl'); $o .= replace_macros($tpl,array( '$lbl1' => t('Password Reset'),