X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flostpass.php;h=1a30effd4eba82e3b7fdc9d819bd76fe7b965112;hb=de4a2e6fd03cd0aab94a256eba92ed593931534b;hp=e7e1a33bd02b22d72c90d621cd2d50656638f127;hpb=637eb0bfb495399502f3a8faf500572c143cdfc3;p=friendica.git diff --git a/mod/lostpass.php b/mod/lostpass.php index e7e1a33bd0..1a30effd4e 100644 --- a/mod/lostpass.php +++ b/mod/lostpass.php @@ -2,6 +2,7 @@ use Friendica\App; use Friendica\Core\System; +use Friendica\Database\DBM; require_once('include/email.php'); require_once('include/enotify.php'); @@ -18,7 +19,7 @@ function lostpass_post(App $a) { dbesc($loginame) ); - if (! dbm::is_result($r)) { + if (! DBM::is_result($r)) { notice( t('No valid account found.') . EOL); goaway(System::baseUrl()); } @@ -90,7 +91,7 @@ function lostpass_content(App $a) { $r = q("SELECT * FROM `user` WHERE `pwdreset` = '%s' LIMIT 1", dbesc($hash) ); - if (! dbm::is_result($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; } @@ -106,7 +107,7 @@ function lostpass_content(App $a) { intval($uid) ); - /// @TODO Is dbm::is_result() okay here? + /// @TODO Is DBM::is_result() okay here? if ($r) { $tpl = get_markup_template('pwdreset.tpl'); $o .= replace_macros($tpl,array(