From 6a4961011c5509a094f4ee897dc581638a7c062d Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Wed, 23 Mar 2016 10:45:13 -0700 Subject: [PATCH] Fixed error 500 with password reset --- WEB-INF/templates/footer.tpl | 2 +- password_reset.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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. -- 2.20.1