From ea467e72d72e9eb7cd140816ee8d7abd900b2629 Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 17 Oct 2012 17:23:08 -0400 Subject: [PATCH] Swap isset() for array_key_exists() Fixes #3283 --- lib/Cake/Controller/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Controller/Controller.php b/lib/Cake/Controller/Controller.php index 978dade8420..8b309899865 100644 --- a/lib/Cake/Controller/Controller.php +++ b/lib/Cake/Controller/Controller.php @@ -796,7 +796,7 @@ public function redirect($url, $status = null, $exit = true) { * @return array Array with keys url, status and exit */ protected function _parseBeforeRedirect($response, $url, $status, $exit) { - if (is_array($response) && isset($response[0])) { + if (is_array($response) && array_key_exists(0, $response)) { foreach ($response as $resp) { if (is_array($resp) && isset($resp['url'])) { extract($resp, EXTR_OVERWRITE);