From 001a21056c7782ae158a67e11997a45c41cfdedf Mon Sep 17 00:00:00 2001 From: RushLana Date: Mon, 16 Mar 2026 13:03:45 +0100 Subject: [PATCH] fixes #2540 only prompt to update container on version lower than the latest version --- admin/include/updates.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/include/updates.class.php b/admin/include/updates.class.php index 03e767c66..7f13a4f63 100644 --- a/admin/include/updates.class.php +++ b/admin/include/updates.class.php @@ -96,7 +96,8 @@ class updates $last_version = trim($all_versions[0]); if ('Official' === $env) { - if ($this->container_version_compare($build_version, $last_version)) + // Check if build_version is lower than the latest version + if ($this->container_version_compare($build_version, $last_version) == '-1') { $last_branch = get_branch_from_version(substr($last_version, 0, -1)); if ($last_branch == $actual_branch) @@ -111,7 +112,7 @@ class updates $branch = get_branch_from_version(substr($version, 0, -1)); if ($branch == $actual_branch) { - if ($this->container_version_compare($build_version, $version)) + if ($this->container_version_compare($build_version, $version) == '-1') { $new_versions['minor'] = $version; }