Fix parameter issue on update check

This commit is contained in:
Sergio Brighenti 2020-11-12 23:06:47 +01:00
parent 37520bb571
commit 9cf8ed2ae0
2 changed files with 5 additions and 1 deletions

View file

@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Fixed
- Formatting error on the check for updates.
## [3.3.0] - 2020-11-12
### Added
- Enabled PHP 8 support.

View file

@ -136,7 +136,7 @@ class UpgradeController extends Controller
$jsonResponse['status'] = 'OK';
foreach ($json as $release) {
if (version_compare($release->tag_name, PLATFORM_VERSION, '>') && ($release->prerelease === $acceptPrerelease)) {
$jsonResponse['message'] = lang('new_version_available', $release->tag_name);
$jsonResponse['message'] = lang('new_version_available', [$release->tag_name]);
$jsonResponse['upgrade'] = true;
break;
}