diff --git a/index.php b/index.php
index b226bdf..f2aa563 100644
--- a/index.php
+++ b/index.php
@@ -24,8 +24,11 @@ if ($current_user > 0 || !isset($_SESSION['loginfailures']) || (isset($_SESSION[
// If logged in, never failed, or more than 1 hour has passed, reset login failures.
$_SESSION['loginfailures'] = 0;
} else {
- $alertlockoutmessage = "You failed logging in 10 times. To prevent request flooding and hacking attempts, you may not log in or create an account for 1 hour.\\n\\nThe last time this page was loaded, you had been locked out for " . time_elapsed(time() - $_SESSION['loginlockouttime']) . "\\n\\nRefresh the page once the hour has passed.";
- $hoverlockoutmessage = str_replace("\\n", "\n", $alertlockoutmessage);
+ $hoverlockoutmessage = '';
+ if (isset($_SESSION['loginlockouttime'])) {
+ $alertlockoutmessage = "You failed logging in 10 times. To prevent request flooding and hacking attempts, you may not log in or create an account for 1 hour.\\n\\nThe last time this page was loaded, you had been locked out for " . time_elapsed(time() - $_SESSION['loginlockouttime']) . "\\n\\nRefresh the page once the hour has passed.";
+ $hoverlockoutmessage = str_replace("\\n", "\n", $alertlockoutmessage);
+ }
}
require_once(SITE_LOCATION . '/php/notificationconditiontree.php');
@@ -419,7 +422,7 @@ if ($display_mode != "build") {
@@ -441,7 +444,7 @@ if ($display_mode != "build") {
-
+