You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-28 07:41:55 +03:00
Do not suggest upgrading when there is no compatible versions
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user