summaryrefslogtreecommitdiff
path: root/Project-Unite/Controllers
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-02 16:45:01 -0400
committerMichael <[email protected]>2017-05-02 16:45:01 -0400
commit724b9a05454c380ec2f0e06ac5defde1db259be9 (patch)
tree24083fb675a1dff6dcd2a3be0bba59d148da28ed /Project-Unite/Controllers
parent398fbffb89c83eb70f1cc939a1f1e8496193aa6d (diff)
downloadproject-unite-724b9a05454c380ec2f0e06ac5defde1db259be9.tar.gz
project-unite-724b9a05454c380ec2f0e06ac5defde1db259be9.tar.bz2
project-unite-724b9a05454c380ec2f0e06ac5defde1db259be9.zip
Oh....duh...
Diffstat (limited to 'Project-Unite/Controllers')
-rw-r--r--Project-Unite/Controllers/ForumController.cs2
-rw-r--r--Project-Unite/Controllers/StatsController.cs2
2 files changed, 3 insertions, 1 deletions
diff --git a/Project-Unite/Controllers/ForumController.cs b/Project-Unite/Controllers/ForumController.cs
index 4abac8c..de2174c 100644
--- a/Project-Unite/Controllers/ForumController.cs
+++ b/Project-Unite/Controllers/ForumController.cs
@@ -351,7 +351,7 @@ namespace Project_Unite.Controllers
{
List<T> obj = new List<T>();
- for(int i = pageSize * page; i < pageSize + (pageSize * page) + 1 && i < collection.Count(); i++)
+ for(int i = pageSize * page; i < pageSize + (pageSize * page) && i < collection.Count(); i++)
{
obj.Add(collection[i]);
}
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);