]> git.mxchange.org Git - friendica.git/blobdiff - mod/lostpass.php
get_basepath() uses a lot $this (which means object-referenced calls, or
[friendica.git] / mod / lostpass.php
index 938d1cbb008ada25359cf6a68514760a2d98fc6f..3dca3a8b81d51d80137b25c86408a3257094d7e8 100644 (file)
@@ -15,7 +15,7 @@ function lostpass_post(&$a) {
                dbesc($loginame)
        );
 
-       if(! count($r)) {
+       if(! dbm::is_result($r)) {
                notice( t('No valid account found.') . EOL);
                goaway(z_root());
        }
@@ -88,7 +88,7 @@ function lostpass_content(&$a) {
                $r = q("SELECT * FROM `user` WHERE `pwdreset` = '%s' LIMIT 1",
                        dbesc($hash)
                );
-               if(! count($r)) {
+               if(! dbm::is_result($r)) {
                        $o =  t("Request could not be verified. \x28You may have previously submitted it.\x29 Password reset failed.");
                        return $o;
                }