X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=password_reset.php;h=216a81cf4b33619ab4c207608197f118e2ede09d;hb=b0e8ffd3af439b5dc6dd5044a46a906d9833932b;hp=f98421a5f476f59a1ec0c3f299dd7642641cee2b;hpb=eb55e2f8ca3859482a389795e03b45283e14ef36;p=timetracker.git diff --git a/password_reset.php b/password_reset.php index f98421a5..216a81cf 100644 --- a/password_reset.php +++ b/password_reset.php @@ -46,7 +46,7 @@ if ($request->isPost()) { // Validate user input. if (!ttValidString($cl_login)) $err->add($i18n->getKey('error.field'), $i18n->getKey('label.login')); - if ($err->IsEmpty()) { + if ($err->no()) { if (!ttUserHelper::getUserByLogin($cl_login)) { // User with a specified login was not found. // In this case, if login looks like email, try finding user by email. @@ -61,7 +61,7 @@ if ($request->isPost()) { } } - if ($err->IsEmpty()) { + if ($err->no()) { $user = new ttUser($cl_login); // Note: reusing $user from initialize.php here. // Prepare and save a temporary reference for user.