mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
YOU'RE a fucking bad request.
This commit is contained in:
parent
724b9a0545
commit
7b23b2c724
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue