diff --git a/bureau/class/m_variables.php b/bureau/class/m_variables.php index 42e272ab..29c977df 100644 --- a/bureau/class/m_variables.php +++ b/bureau/class/m_variables.php @@ -59,7 +59,12 @@ class m_variables { } else { $mid = null; } - return $this->get_impersonated($_SERVER['HTTP_HOST'], $mid); + if (isset($_SERVER['HTTP_HOST'])) { + $host=$_SERVER['HTTP_HOST']; + } else { + $host=null; + } + return $this->get_impersonated($host, $mid); }