summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-01-25 19:42:24 -0600
committerBlueRaja <BlueRaja.admin@gmail.com>2013-01-25 19:42:24 -0600
commit8a276a1857bc28677ac43c083d44a0ce5bf63343 (patch)
tree1cbfa1ac9d306cdadff12732d697fed604cfef4f
parent2667aded58dddf8bc1ea9c6e83151684e2b7d5cc (diff)
downloadpathery-8a276a1857bc28677ac43c083d44a0ce5bf63343.tar.xz
whoops, switching between languages too quickly..
-rw-r--r--pages/challengelist.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/pages/challengelist.php b/pages/challengelist.php
index b252c38..d6e6d2f 100644
--- a/pages/challengelist.php
+++ b/pages/challengelist.php
@@ -107,7 +107,9 @@ function getChallengeListHtml($challengeListResultset) {
function getNextChallengeTierHtml($numCompletedChallenges)
{
- for(int $nextTier = 0; $nextTier < count($tierChallengeRequirements); $nextTier++)
+ global $tierChallengeRequirements;
+
+ for($nextTier = 0; $nextTier < count($tierChallengeRequirements); $nextTier++)
{
$numChallengesForNextTier = numChallengesRemainingForTier($nextTier, $numCompletedChallenges);
if($numChallengesForNextTier > 0)
@@ -120,7 +122,7 @@ function getNextChallengeTierHtml($numCompletedChallenges)
if($userCurrentTier != $nextTier - 1)
{
//TODO: Display some sort of "tier XY unlocked" or something
- $setUserChallengeTier($userID, $nextTier -1);
+ setUserChallengeTier($userID, $nextTier -1);
}
//Return the tiers-left html