Skip to content
Permalink
Browse files

Changing array_key_exists for the faster isset().

  • Loading branch information...
markstory committed Jun 21, 2010
1 parent 2db510d commit a1911b471475ff1107e5ffd1de09c0d4b1c092da
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/dispatcher.php
@@ -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'])) {

0 comments on commit a1911b4

Please sign in to comment.
You can’t perform that action at this time.