mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removing a dead isset() and collapsing an if.
This commit is contained in:
parent
aef53cd23a
commit
9b55487d4e
1 changed files with 5 additions and 7 deletions
|
@ -175,13 +175,11 @@ class Configure {
|
|||
}
|
||||
}
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue