Skip to content

Commit

Permalink
Removing a dead isset() and collapsing an if.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 4, 2010
1 parent aef53cd commit 9b55487
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions cake/libs/configure.php
Expand Up @@ -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;
Expand Down

0 comments on commit 9b55487

Please sign in to comment.