diff --git a/api.go b/api.go index 73a1e94..ffb7548 100644 --- a/api.go +++ b/api.go @@ -891,7 +891,7 @@ func (app *appContext) ModifyConfig(gc *gin.Context) { tempConfig.SaveTo(app.config_path) app.debug.Println("Config saved") gc.JSON(200, map[string]bool{"success": true}) - if req["restart-program"].(bool) { + if req["restart-program"] != nil && req["restart-program"].(bool) { app.info.Println("Restarting...") err := app.Restart() if err != nil { diff --git a/data/templates/admin.html b/data/templates/admin.html index f97d023..89c414a 100644 --- a/data/templates/admin.html +++ b/data/templates/admin.html @@ -88,40 +88,6 @@ -
+Note: * Indicates required field, R Indicates changes require a restart.
+ + + {{ if .ombiEnabled }} + + {{ end }} +{{ .contactMessage }}