diff options
| author | Michael <[email protected]> | 2017-05-02 16:46:33 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-02 16:46:33 -0400 |
| commit | 7b23b2c724bc4912158647d75fec50c4184931e6 (patch) | |
| tree | 86972342e8973d81a93ef6eac0cb80fbb0d0f6eb | |
| parent | 724b9a05454c380ec2f0e06ac5defde1db259be9 (diff) | |
| download | project-unite-7b23b2c724bc4912158647d75fec50c4184931e6.tar.gz project-unite-7b23b2c724bc4912158647d75fec50c4184931e6.tar.bz2 project-unite-7b23b2c724bc4912158647d75fec50c4184931e6.zip | |
YOU'RE a fucking bad request.
| -rw-r--r-- | Project-Unite/Controllers/StatsController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
