// Incorrect password
login_fail();
}
- elseif(!$_SESSION['timeout']['post'])
+ elseif(isset($_SESSION['timeout']) && !$_SESSION['timeout']['post'])
{
// in case of GET request redirect to avoid confirmation dialog
// after return from menu option
- header("HTTP 1.1 303 See Other");
+ header("HTTP/1.1 303 See Other");
header("Location: ".$_SESSION['timeout']['uri']);
exit();
}