diff --git a/cake/dispatcher.php b/cake/dispatcher.php index b2b1d81d4..c6be13c7d 100644 --- a/cake/dispatcher.php +++ b/cake/dispatcher.php @@ -271,7 +271,7 @@ class Dispatcher extends Object { $params['form']['_method'] = env('HTTP_X_HTTP_METHOD_OVERRIDE'); } if (isset($params['form']['_method'])) { - if (isset($_SERVER) && !empty($_SERVER)) { + if (!empty($_SERVER)) { $_SERVER['REQUEST_METHOD'] = $params['form']['_method']; } else { $_ENV['REQUEST_METHOD'] = $params['form']['_method'];