【发布时间】:2015-12-15 09:44:51
【问题描述】:
我处于一个模棱两可的境地。 这是相关的代码: 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;
}
这就是问题所在: http://prntscr.com/9ednwm
PHP 通知:未定义索引:第 92 行 /home/******************/public_html/inc/classes/Security.inc.php 中的 stopBot
isset() 函数返回true,但是当我使用该函数时,它说索引未定义!?
提前致谢
【问题讨论】:
-
把相关代码和问题描述贴在这里,不要使用链接(它们将来可能会变得陈旧,而这个问题在这里是为了帮助别人和你自己)。
-
你在做什么?检查您的会话索引名称,您正在做拼写错误.. StopBOT 和 StopBot
-
好的 ;) 我会这样做 :)
标签: php session indexing undefined