added check for array in Request::spoofed.

This commit is contained in:
Taylor Otwell 2011-07-09 17:15:23 -05:00
parent 9608a0dee7
commit ceb0e1a807
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ public static function method()
*/
public static function spoofed()
{
return array_key_exists('REQUEST_METHOD', $_POST);
return is_array($_POST) and array_key_exists('REQUEST_METHOD', $_POST);
}
/**