diff --git a/config/app.php.txt b/config/app.php.txt index 5c1e56d..8f068c7 100644 --- a/config/app.php.txt +++ b/config/app.php.txt @@ -6,7 +6,7 @@ ini_set('display_startup_errors', '1'); error_reporting(E_ALL); // Website -define('WEBSITE_DOMAIN', 'http://' . $_SERVER['HTTP_HOST']); +define('WEBSITE_DOMAIN', !empty($_SERVER['HTTP_HOST']) ? 'http://' . $_SERVER['HTTP_HOST'] : ''); // Database define('DB_NAME', 'database.sqlite');