Fix: loghandler loaded twice.

This commit is contained in:
Laurent Destailleur 2013-01-28 12:36:15 +01:00
parent abd8aea06b
commit a8ccc0ab0b
2 changed files with 3 additions and 3 deletions

View File

@ -466,7 +466,7 @@ class Conf
throw new Exception('Log handler does not extend LogHandlerInterface');
}
$this->loghandlers[]=$loghandlerinstance;
if (empty($conf->loghandlers[$handler])) $this->loghandlers[$handler]=$loghandlerinstance;
}
}
}

View File

@ -228,7 +228,7 @@ foreach ($handlers as $handler)
throw new Exception('Log handler does not extend LogHandlerInterface');
}
$conf->loghandlers[]=$loghandlerinstance;
if (empty($conf->loghandlers[$handler])) $conf->loghandlers[$handler]=$loghandlerinstance;
}
// Removed magic_quotes
@ -331,7 +331,7 @@ function conf($dolibarr_main_document_root)
throw new Exception('Log handler does not extend LogHandlerInterface');
}
$conf->loghandlers[]=$loghandlerinstance;
if (empty($conf->loghandlers[$handler])) $conf->loghandlers[$handler]=$loghandlerinstance;
}
return 1;