X-Git-Url: https://git.rapsys.eu/packbundle/blobdiff_plain/884434e58dda34f2c3f780999c74f8d6a11569d5..006fbe00540929765d3d53bed7b069506c6d6e0a:/Controller/MapController.php?ds=sidebyside diff --git a/Controller/MapController.php b/Controller/MapController.php index 869d5ab..255c47b 100644 --- a/Controller/MapController.php +++ b/Controller/MapController.php @@ -54,7 +54,7 @@ class MapController extends AbstractController implements ServiceSubscriberInter 'http' => [ #'header' => ['Referer: https://www.openstreetmap.org/'], 'max_redirects' => $_ENV['RAPSYSPACK_REDIRECT'] ?? 20, - 'timeout' => $_ENV['RAPSYSPACK_TIMEOUT'] ?? (int)ini_get('default_socket_timeout') ?: 60, + 'timeout' => $_ENV['RAPSYSPACK_TIMEOUT'] ?? (($timeout = ini_get('default_socket_timeout')) !== false && $timeout !== "" ? (float)$timeout : 60), 'user_agent' => $_ENV['RAPSYSPACK_AGENT'] ?? (($agent = ini_get('user_agent')) !== false && $agent !== "" ? (string)$agent : RapsysPackBundle::getAlias().'/'.RapsysPackBundle::getVersion()) ] ]