changeset 134 | 588edbc9e14b |
parent 130 | c450bb73f59a |
child 138 | 23d3a518d0ad |
--- a/report.go Mon Apr 17 15:22:45 2017 +0200 +++ b/report.go Mon Apr 17 16:22:56 2017 +0200 @@ -32,6 +32,9 @@ params["account_id"] = strconv.Itoa(accountID) params["comment"] = comment for i, id := range statusIDs { + if id < 1 { + return nil, ErrInvalidID + } qID := fmt.Sprintf("status_ids[%d]", i+1) params[qID] = strconv.Itoa(id) }