diff --git a/scripts/pi-hole/php/update_checker.php b/scripts/pi-hole/php/update_checker.php
index 9670005ea..733b1574e 100644
--- a/scripts/pi-hole/php/update_checker.php
+++ b/scripts/pi-hole/php/update_checker.php
@@ -83,9 +83,6 @@ function checkUpdate($currentVersion, $latestVersion)
$docker_update = false;
} else {
$docker_update = checkUpdate($docker_current, $docker_latest);
-
- $dockerUrl = 'https://github.com/pi-hole/docker-pi-hole/releases';
- $dockerVersionStr = ''.$docker_current.'';
}
} else {
// Components comparison
@@ -102,26 +99,30 @@ function checkUpdate($currentVersion, $latestVersion)
$coreUrl = 'https://github.com/pi-hole/pi-hole/releases';
$webUrl = 'https://github.com/pi-hole/AdminLTE/releases';
$ftlUrl = 'https://github.com/pi-hole/FTL/releases';
+$dockerUrl = 'https://github.com/pi-hole/docker-pi-hole/releases';
// Version strings
// If "vDev" show branch/commit, else show link
-$coreVersionStr = $core_current;
if (isset($core_commit)) {
- $coreVersionStr .= ' ('.$core_branch.', '.$core_commit.')';
+ $coreVersionStr = $core_current.' ('.$core_branch.', '.$core_commit.')';
} else {
$coreVersionStr = ''.$core_current.'';
}
-$webVersionStr = $web_current;
if (isset($web_commit)) {
- $webVersionStr .= ' ('.$web_branch.', '.$web_commit.')';
+ $webVersionStr = $web_current.' ('.$web_branch.', '.$web_commit.')';
} else {
$webVersionStr = ''.$web_current.'';
}
-$ftlVersionStr = $FTL_current;
if (isset($FTL_commit)) {
- $ftlVersionStr .= ' ('.$FTL_branch.', '.$FTL_commit.')';
+ $ftlVersionStr = $FTL_current.' ('.$FTL_branch.', '.$FTL_commit.')';
} else {
$ftlVersionStr = ''.$FTL_current.'';
}
+
+if ($docker_current) {
+ $dockerVersionStr = ''.$docker_current.'';
+} else {
+ $dockerVersionStr = '';
+}