Fix PHP 8.1.7

This commit is contained in:
Alexandre SPANGARO 2022-06-12 07:01:17 +02:00
parent a62b5a10fe
commit 4620224b65

View File

@ -40,7 +40,7 @@ class DolibarrDebugBar extends DebugBar
//$this->addCollector(new DolExceptionsCollector());
$this->addCollector(new DolQueryCollector());
$this->addCollector(new DolibarrCollector());
if ($conf->syslog->enabled) {
if (!empty($conf->syslog->enabled)) {
$this->addCollector(new DolLogsCollector());
}
}