Fix: We must no enable FirePHP if not in a web context
This commit is contained in:
parent
f620f924e8
commit
7d0a7f569e
@ -584,7 +584,7 @@ function dol_syslog($message, $level=LOG_INFO)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if log is to syslog (SYSLOG_FIREPHP_ON defined)
|
// Check if log is to syslog (SYSLOG_FIREPHP_ON defined)
|
||||||
if (defined("SYSLOG_FIREPHP_ON") && constant("SYSLOG_FIREPHP_ON"))
|
if (defined("SYSLOG_FIREPHP_ON") && constant("SYSLOG_FIREPHP_ON") && ! empty($_SERVER["SERVER_NAME"])) //! empty($_SERVER["SERVER_NAME"]) to be sure to enable this in Web mode only
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user