Skip to content

Commit

Permalink
Changing array_key_exists for the faster isset().
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jun 21, 2010
1 parent 2db510d commit a1911b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/dispatcher.php
Expand Up @@ -162,7 +162,7 @@ function dispatch($url = null, $additionalParams = array()) {
} else {
$controller->data = null;
}
if (array_key_exists('return', $this->params) && $this->params['return'] == 1) {
if (isset($this->params['return']) && $this->params['return'] == 1) {
$controller->autoRender = false;
}
if (!empty($this->params['bare'])) {
Expand Down

0 comments on commit a1911b4

Please sign in to comment.