summaryrefslogtreecommitdiff
path: root/Project-Unite/Controllers
diff options
context:
space:
mode:
Diffstat (limited to 'Project-Unite/Controllers')
-rw-r--r--Project-Unite/Controllers/StatsController.cs2
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);