Do not suggest upgrading when there is no compatible versions
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
c3fefc2e4a
commit
75d7927604
@ -129,9 +129,8 @@ function PMA_versionCheck()
|
||||
if ($latestCompatible != null) {
|
||||
$version = $latestCompatible['version'];
|
||||
$date = $latestCompatible['date'];
|
||||
} else { // fallback to old behavior
|
||||
$version = $versionDetials->version;
|
||||
$date = $versionDetials->date;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
$version_upstream = $versionInformation->versionToInt($version);
|
||||
|
||||
@ -24,12 +24,11 @@ if (empty($versionDetails)) {
|
||||
$latestCompatible = $versionInformation->getLatestCompatibleVersion(
|
||||
$versionDetails->releases
|
||||
);
|
||||
$version = '';
|
||||
$date = '';
|
||||
if ($latestCompatible != null) {
|
||||
$version = $latestCompatible['version'];
|
||||
$date = $latestCompatible['date'];
|
||||
} else { // fallback to old behavior
|
||||
$version = $versionDetails->version;
|
||||
$date = $versionDetails->date;
|
||||
}
|
||||
echo json_encode(
|
||||
array(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user