diff --git a/web/web.go b/web/web.go index 6a1ec7d..98cf640 100644 --- a/web/web.go +++ b/web/web.go @@ -1243,7 +1243,7 @@ func (web *Web) backupDelete(c *gin.Context) { c.AbortWithError(http.StatusBadRequest, err) return } - if importID <= 0 { + if importID < 0 { c.Redirect(http.StatusSeeOther, web.urlPrefix+"backup/view") return }