From: Nik Okuntseff Date: Wed, 23 Mar 2016 17:45:13 +0000 (-0700) Subject: Fixed error 500 with password reset X-Git-Tag: timetracker_1.19-1~1788 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6a4961011c5509a094f4ee897dc581638a7c062d;p=timetracker.git Fixed error 500 with password reset --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 2b3fe279..8465c79e 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.9.16.3436 | Copyright © Anuko | +  Anuko Time Tracker 1.9.17.3437 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} 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.