From f83f203341d81941dbbde77510fbd99efe6be91a Mon Sep 17 00:00:00 2001 From: eldadfux Date: Tue, 3 Sep 2019 13:42:19 +0300 Subject: [PATCH] Fixed console warning --- app/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/init.php b/app/init.php index 0cf23e97e0..548bb9d440 100644 --- a/app/init.php +++ b/app/init.php @@ -48,7 +48,7 @@ $version = include __DIR__ . '/../app/config/version.php'; $redisHost = $request->getServer('_APP_REDIS_HOST', ''); $redisPort = $request->getServer('_APP_REDIS_PORT', ''); $utopia = new App('Asia/Tel_Aviv', $env); -$port = parse_url($_SERVER['HTTP_HOST'], PHP_URL_PORT); +$port = (string)(isset($_SERVER['HTTP_HOST'])) ? parse_url($_SERVER['HTTP_HOST'], PHP_URL_PORT) : ''; Resque::setBackend($redisHost . ':' . $redisPort);