From 7b23b2c724bc4912158647d75fec50c4184931e6 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 2 May 2017 16:46:33 -0400 Subject: [PATCH] YOU'RE a fucking bad request. --- Project-Unite/Controllers/StatsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project-Unite/Controllers/StatsController.cs b/Project-Unite/Controllers/StatsController.cs index 1fbf851..fbfaf17 100644 --- a/Project-Unite/Controllers/StatsController.cs +++ b/Project-Unite/Controllers/StatsController.cs @@ -28,7 +28,7 @@ namespace Project_Unite.Controllers 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);