diff options
| author | Michael <[email protected]> | 2017-05-02 16:45:01 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-02 16:45:01 -0400 |
| commit | 724b9a05454c380ec2f0e06ac5defde1db259be9 (patch) | |
| tree | 24083fb675a1dff6dcd2a3be0bba59d148da28ed /Project-Unite/Controllers/StatsController.cs | |
| parent | 398fbffb89c83eb70f1cc939a1f1e8496193aa6d (diff) | |
| download | project-unite-724b9a05454c380ec2f0e06ac5defde1db259be9.tar.gz project-unite-724b9a05454c380ec2f0e06ac5defde1db259be9.tar.bz2 project-unite-724b9a05454c380ec2f0e06ac5defde1db259be9.zip | |
Oh....duh...
Diffstat (limited to 'Project-Unite/Controllers/StatsController.cs')
| -rw-r--r-- | Project-Unite/Controllers/StatsController.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Project-Unite/Controllers/StatsController.cs b/Project-Unite/Controllers/StatsController.cs index 1306f8e..1fbf851 100644 --- a/Project-Unite/Controllers/StatsController.cs +++ b/Project-Unite/Controllers/StatsController.cs @@ -25,6 +25,8 @@ namespace Project_Unite.Controllers }); } + id = id - 1; + int pagecount = highscores.GetPageCount(10); if (id > pagecount || id < 1) return new HttpStatusCodeResult(HttpStatusCode.BadRequest); |
