修正request类

This commit is contained in:
thinkphp
2016-08-17 13:39:30 +08:00
parent 41f3423180
commit 90d9aaa65e

View File

@@ -1172,7 +1172,7 @@ class Request
public function isAjax()
{
$value = $this->server('HTTP_X_REQUESTED_WITH');
return (!is_null($value) && strtolower($vlaue) == 'xmlhttprequest') ? true : false;
return (!is_null($value) && strtolower($value) == 'xmlhttprequest') ? true : false;
}
/**