Fix 500 when update checks disabled

Ref T572
admin-dashboard-redesign
Matt Baer 5 years ago
parent 46dbb10433
commit 303144fd24
  1. 6
      admin.go

@ -95,9 +95,11 @@ type AdminPage struct {
}
func NewAdminPage(app *App) *AdminPage {
return &AdminPage{
UpdateAvailable: app.updates.AreAvailableNoCheck(),
ap := &AdminPage{}
if app.updates != nil {
ap.UpdateAvailable = app.updates.AreAvailableNoCheck()
}
return ap
}
func (c instanceContent) UpdatedFriendly() string {

Loading…
Cancel
Save