diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-08-19 13:59:52 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-08-19 13:59:52 +0300 |
commit | 496bbbd15239c6cfa160679b2aa51cefa55b6fdb (patch) | |
tree | c75f2c771196863ef5987acd9feca062556a669f /plugins/Monolog/config | |
parent | 763d19b594ff4e1aec4785e0816f7d57114c3a82 (diff) |
tracker debug config might be not set, avoid a warning
Diffstat (limited to 'plugins/Monolog/config')
-rw-r--r-- | plugins/Monolog/config/tracker.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Monolog/config/tracker.php b/plugins/Monolog/config/tracker.php index a1220a7682..22e06bb1f1 100644 --- a/plugins/Monolog/config/tracker.php +++ b/plugins/Monolog/config/tracker.php @@ -6,7 +6,7 @@ return array( 'Psr\Log\LoggerInterface' => function (ContainerInterface $c) { $trackerDebug = $c->get("ini.Tracker.debug"); - if ($trackerDebug == 1 || $GLOBALS['PIWIK_TRACKER_DEBUG']) { + if ($trackerDebug == 1 || !empty($GLOBALS['PIWIK_TRACKER_DEBUG'])) { return $c->get('Monolog\Logger'); } else { return new \Psr\Log\NullLogger(); |