From 059898d5bd2c7d4fe48764fe47aa5b832c050fd4 Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Thu, 28 Feb 2013 15:00:17 -0500 Subject: [PATCH] Fix up to date display --- MediaBrowser.ServerApplication/ApplicationHost.cs | 2 +- MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.ServerApplication/ApplicationHost.cs b/MediaBrowser.ServerApplication/ApplicationHost.cs index 0ed3b228e..f350b2885 100644 --- a/MediaBrowser.ServerApplication/ApplicationHost.cs +++ b/MediaBrowser.ServerApplication/ApplicationHost.cs @@ -165,7 +165,7 @@ namespace MediaBrowser.ServerApplication var version = Kernel.InstallationManager.GetLatestCompatibleVersion(availablePackages, "MBServer", Kernel.Configuration.SystemUpdateLevel); return version != null ? new CheckForUpdateResult {AvailableVersion = version.version, IsUpdateAvailable = version.version > ApplicationVersion, Package = version} : - new CheckForUpdateResult(); + new CheckForUpdateResult {AvailableVersion = ApplicationVersion, IsUpdateAvailable = false}; } /// diff --git a/MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js b/MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js index 848c6b1a0..db6d66b45 100644 --- a/MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js +++ b/MediaBrowser.WebDashboard/Html/scripts/DashboardPage.js @@ -306,7 +306,7 @@ ApiClient.getAvailableApplicationUpdate().done(function (packageInfo) { - var version = packageInfo.versions[0]; + var version = packageInfo[0]; if (!version) { $('#pUpToDate', page).show();