mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 01:59:14 +00:00
Merge pull request #2838 from int2001/version_compare
Shows Versioninfo of CURRENT Version instead of newest
This commit is contained in:
commit
3a672c159b
@ -39,8 +39,14 @@
|
||||
if ($response !== false) {
|
||||
$data = json_decode($response, true);
|
||||
|
||||
$current_version=$this->optionslib->get_option('version');
|
||||
if ($data !== null && !empty($data)) {
|
||||
$firstRelease = $data[0];
|
||||
foreach ($data as $singledata) {
|
||||
if ($singledata['name']==$current_version) {
|
||||
$firstRelease = $singledata;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
$releaseBody = isset($firstRelease['body']) ? $firstRelease['body'] : 'No release information available';
|
||||
$htmlReleaseBody = htmlspecialchars($releaseBody);
|
||||
|
Loading…
Reference in New Issue
Block a user