From 4d89dc49616da71510e74da9edfd4facf65e4f6f Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 2 Jun 2007 06:10:43 +0000 Subject: [PATCH] r1551: In login.php, $message->items would never be filled because it doesn't actually exist in MessageReporter, instead we should use $message->hasErrors() --- docs/changes.txt | 1 + login.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index 9c62b49..24bafc6 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -2,6 +2,7 @@ =============================== - Enhancement: Allow sorting and display of the "assigned to" column on grid display - Fixed: Comments wouldn't be displayed in a right-to-left fashion if the language is RTL (bug://report/80) +- Fixed: When submitting the lost password form, error checking was disregarded because we were checking for errors the old way 1.2.0 Beta 3 =============================== diff --git a/login.php b/login.php index 9759a35..a94366a 100755 --- a/login.php +++ b/login.php @@ -111,7 +111,7 @@ if ($_POST['do'] == 'sendpw') $user->set_condition(array('email')); $user->fetch(); - if ($message->items) + if ($message->hasErrors()) { $show['lostpwerror'] = true; $_REQUEST['do'] = 'lostpw'; -- 2.22.5