Skip to content

Commit 662f981

Browse files
authored
Bug fixed.
1 parent 0014873 commit 662f981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Router/RouterRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private static function checkMethods($value, $method)
4747
{
4848
$valid = false;
4949

50-
if($value == 'AJAX' && !is_null($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' && $value == $method)
50+
if($value == 'AJAX' && isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' && $value == $method)
5151
$valid = true;
5252
elseif ( in_array($value, explode('|', self::$validMethods)) && ($value == $method || $value == 'ANY') )
5353
$valid = true;

0 commit comments

Comments
 (0)