1
0
Fork 0
mirror of synced 2024-06-29 03:30:34 +12:00

Fixed console warning

This commit is contained in:
eldadfux 2019-09-03 13:42:19 +03:00
parent 459f262101
commit f83f203341

View file

@ -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);