diff --git a/public/include/pages/account/reset_failed.inc.php b/public/include/pages/account/reset_failed.inc.php index ef30938f..9f19b030 100644 --- a/public/include/pages/account/reset_failed.inc.php +++ b/public/include/pages/account/reset_failed.inc.php @@ -6,7 +6,7 @@ if (!defined('SECURITY')) die('Hacking attempt'); if ($user->isAuthenticated()) { // Reset failed login counter $user->setUserFailed($_SESSION['USERDATA']['id'], 0); - header("Location: " . $_SERVER['HTTP_REFERER']); + if (!empty($_SERVER['HTTP_REFERER'])) header("Location: " . $_SERVER['HTTP_REFERER']); } // Somehow we still need to load this empty template $smarty->assign("CONTENT", "empty");