Topic: Undefined index: ...../fa/includes/session.inc at line 158

Hello,

i don't know if it is a real problem or just a warning ...

every time i open the login page to access FA i get the login form but i also get a pink bow on the top with a message

see here


i have check the file the message refers to:

function check_faillog()
{
    global $login_delay, $login_faillog, $login_max_attempts;

    $user = $_SESSION["wa_current_user"]->user;

(line 158)    if (@$login_delay && ($login_faillog[$user][$_SERVER['REMOTE_ADDR']] >= @$login_max_attempts) && (time() < $login_faillog[$user]['last'] + $login_delay))
        return true;

    return false;
}

anything i could do to fix or i just ignore it

many thanks

Re: Undefined index: ...../fa/includes/session.inc at line 158

This issue will be fixed in next minor FA version. Before that you can change respective fragment to:

if (@$login_delay && (@$login_faillog[$user][$_SERVER['REMOTE_ADDR']] >= @$login_max_attempts) && (time() < $login_faillog[$user]['last'] + $login_delay))
        return true;

Re: Undefined index: ...../fa/includes/session.inc at line 158

Fixed in v2.3.12+ Mercurial Changeset 3066 on Sep 17th 2012.