Skip to content
Permalink
Browse files

Removing a dead isset() and collapsing an if.

  • Loading branch information...
markstory committed Dec 4, 2010
1 parent aef53cd commit 9b55487d4ee3690c3840005e43b66c840a5bb779
Showing with 5 additions and 7 deletions.
  1. +5 −7 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;

0 comments on commit 9b55487

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