From 57f81da98383f767268d5841e7c770ac8c2fb1b2 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 4 Oct 2012 11:27:24 -0400 Subject: [PATCH] Fix variable naming. --- lib/Cake/Error/ExceptionRenderer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Error/ExceptionRenderer.php b/lib/Cake/Error/ExceptionRenderer.php index fea5ad85b..8aa72a4d2 100644 --- a/lib/Cake/Error/ExceptionRenderer.php +++ b/lib/Cake/Error/ExceptionRenderer.php @@ -116,11 +116,11 @@ class ExceptionRenderer { } } - $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;