YOU'RE a fucking bad request.

This commit is contained in:
Michael 2017-05-02 16:46:33 -04:00
parent 724b9a0545
commit 7b23b2c724

View file

@ -28,7 +28,7 @@ public ActionResult Pong(int id = 1)
id = id - 1;
int pagecount = highscores.GetPageCount(10);
if (id > pagecount || id < 1)
if (id > pagecount || id < 0)
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
var pages = highscores.OrderByDescending(x=>x.Level).ToArray().GetItemsOnPage(id, 10);