From 9b55487d4ee3690c3840005e43b66c840a5bb779 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 4 Dec 2010 00:24:09 -0500 Subject: [PATCH] Removing a dead isset() and collapsing an if. --- cake/libs/configure.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/cake/libs/configure.php b/cake/libs/configure.php index 8340ca1f659..2540910f2ed 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -175,13 +175,11 @@ public static function write($config, $value = null) { } } - if (isset($config['debug']) || isset($config['log'])) { - if (function_exists('ini_set')) { - if (self::$_values['debug']) { - ini_set('display_errors', 1); - } else { - ini_set('display_errors', 0); - } + if (isset($config['debug']) && function_exists('ini_set')) { + if (self::$_values['debug']) { + ini_set('display_errors', 1); + } else { + ini_set('display_errors', 0); } } return true;