fixed backupDelete bug

This commit is contained in:
BroodjeAap 2023-02-10 20:32:16 +00:00
parent be40ee9c71
commit 626e11083f

View file

@ -1243,7 +1243,7 @@ func (web *Web) backupDelete(c *gin.Context) {
c.AbortWithError(http.StatusBadRequest, err) c.AbortWithError(http.StatusBadRequest, err)
return return
} }
if importID <= 0 { if importID < 0 {
c.Redirect(http.StatusSeeOther, web.urlPrefix+"backup/view") c.Redirect(http.StatusSeeOther, web.urlPrefix+"backup/view")
return return
} }