diff --git a/resources/views/licenses/view.blade.php b/resources/views/licenses/view.blade.php index 7c99e8b739..aabbdb2608 100755 --- a/resources/views/licenses/view.blade.php +++ b/resources/views/licenses/view.blade.php @@ -290,12 +290,14 @@
- @if ($license->time_until_depreciated()->y > 0) - {{ $license->time_until_depreciated()->y }} - {{ trans('admin/hardware/form.years') }}, - @endif - {{ $license->time_until_depreciated()->m }} - {{ trans('admin/hardware/form.months') }} + @if ($license->time_until_depreciated()) + @if ($license->time_until_depreciated()->y > 0) + {{ $license->time_until_depreciated()->y }} + {{ trans('admin/hardware/form.years') }}, + @endif + {{ $license->time_until_depreciated()->m }} + {{ trans('admin/hardware/form.months') }} + @endif
@endif diff --git a/upgrade.php b/upgrade.php index 6c4146b3d1..d08f7439e3 100644 --- a/upgrade.php +++ b/upgrade.php @@ -10,6 +10,12 @@ function url_get_contents ($Url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $Url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + // If we're on windows, make sure we can load intermediate certificates in + // weird corporate environments. + // See: https://github.com/curl/curl/commit/2d6333101a71129a6a802eb93f84a5ac89e34479 + if (PHP_OS == "WINNT"){ + curl_setopt($ch, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA); + } $output = curl_exec($ch); curl_close($ch); return $output;