X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flostpass.php;h=3dca3a8b81d51d80137b25c86408a3257094d7e8;hb=c43e9aa74ee1f68249ea2dd77f0553201fcb1239;hp=938d1cbb008ada25359cf6a68514760a2d98fc6f;hpb=8ec424325375aa923c7d2d78ac8ddcc352f09cff;p=friendica.git diff --git a/mod/lostpass.php b/mod/lostpass.php index 938d1cbb00..3dca3a8b81 100644 --- a/mod/lostpass.php +++ b/mod/lostpass.php @@ -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; }