]> git.mxchange.org Git - friendica.git/blobdiff - mod/lostpass.php
Merge pull request #3110 from tobiasd/20170127-translationdocs
[friendica.git] / mod / lostpass.php
index 3174bcd0e0572c1b7b87f3d626f38d767da25f7b..455a9b1e2eed697580cd17fb8e4dcfe2b53da43d 100644 (file)
@@ -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'),