Skip to content

Commit

Permalink
Fix variable naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 4, 2012
1 parent 1c0492e commit 57f81da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Error/ExceptionRenderer.php
Expand Up @@ -116,11 +116,11 @@ public function __construct(Exception $exception) {
}
}

$isDebug = (Configure::read('debug') == 0);
if ($isDebug && $method == '_cakeError') {
$isNotDebug = (Configure::read('debug') == 0);
if ($isNotDebug && $method == '_cakeError') {
$method = 'error400';
}
if ($isDebug && $code == 500) {
if ($isNotDebug && $code == 500) {
$method = 'error500';
}
$this->template = $template;
Expand Down

0 comments on commit 57f81da

Please sign in to comment.