Skip to content

Commit

Permalink
Fixed issue with system/settings logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
deadbeef84 committed May 14, 2015
1 parent 0fbb461 commit b5a98b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/Curry/Backend/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,12 +484,15 @@ private function saveSettings(&$config, array $values)
$loggers = $this->getDefaultLoggers($config);
foreach($loggers as $name => $logger) {
if (in_array($name, (array)$values['misc']['log'])) {
if (!isset($config->log)) {
$config->log = array();
}
if (!isset($config->log->$name)) {
$config->log->$name = $logger;
}
unset($config->log->$name->enabled);
} else if (isset($config->log->$name)) {
$config->log->$name->enabled = false;
self::setvar($config, "log.$name.enabled", false);
}
}
self::setvar($config, 'updateTranslationStrings', (bool)$values['misc']['update_translations'], false);
Expand Down

0 comments on commit b5a98b6

Please sign in to comment.