-3

I'm in a ambiguous situation. Here's the concerned code: http://prntscr.com/9edm4j

public function verifyReply($reponse)
{
    $qr = $this->mStopBOT;
    if(isset($_SESSION["stopBOT"]))
    {
        if($_SESSION["stopBot"] === false)
        {
            $_SESSION["stopBOT"] = true;
            if($qr[$_SESSION["stopBOTq"]][1] == $reponse)
                return true;
        }
    }
    return false;
}

And here is the problem: http://prntscr.com/9ednwm

PHP Notice: Undefined index: stopBot in /home/*************/public_html/inc/classes/Security.inc.php on line 92

The isset() function returns true, but when I use the function, it says that the index is undefined! ?

Regards and Thanks in Advance

Ioio
  • 3
  • 4
  • 2
    Post the relevant code and problem-descriptions here , don't use links (they might get stale in the future, while this question is here to help others as well as yourself). – Tom Regner Dec 15 '15 at 09:47
  • 1
    what are you doing man? check your session index name, you are doing spelling mistake.. StopBOT and StopBot – devpro Dec 15 '15 at 09:51
  • Ok ;) I'll do that :) – Ioio Dec 15 '15 at 09:56

1 Answers1

1

You are checking if $_SESSION['stopBOT'] is set but then use $_SESSION['stopBot']

Note the case difference, stopBOT vs stopBot

danjam
  • 1,064
  • 9
  • 13