From ab6b63d6f1a288c63e7523eb32ce6dbe02c06fff Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 4 Aug 2015 10:51:12 +0200 Subject: [PATCH] Fix return message --- main/auth/reset.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/main/auth/reset.php b/main/auth/reset.php index 07278056a2..d69b41149e 100644 --- a/main/auth/reset.php +++ b/main/auth/reset.php @@ -52,12 +52,9 @@ if ($form->validate()) { header('Location: '.api_get_path(WEB_PATH)); exit; } else { - - if (empty($user)) { - Display::addFlash( - Display::return_message(get_lang('LinkExpired')) - ); - } + Display::addFlash( + Display::return_message(get_lang('LinkExpired')) + ); } }