mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 10:38:50 -05:00
Fix Docker container status to show "not available" when it fails to check for updates
This commit is contained in:
@@ -480,6 +480,9 @@ class DockerUpdate{
|
||||
$image = DockerUtil::ensureImageTag($image);
|
||||
$updateStatus = DockerUtil::loadJSON($dockerManPaths['update-status']);
|
||||
if (isset($updateStatus[$image])) {
|
||||
if (isset($updateStatus[$image]['status']) && $updateStatus[$image]['status']=='undef') {
|
||||
return null;
|
||||
}
|
||||
if ($updateStatus[$image]['local'] || $updateStatus[$image]['remote']) {
|
||||
return ($updateStatus[$image]['local'] == $updateStatus[$image]['remote']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user