summaryrefslogtreecommitdiffstats
path: root/pages/challenge.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/challenge.php')
-rw-r--r--pages/challenge.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/pages/challenge.php b/pages/challenge.php
index 4e5c50c..84b401b 100644
--- a/pages/challenge.php
+++ b/pages/challenge.php
@@ -69,16 +69,16 @@ topbar($Links);
//Check that the user is allowed to do the challenges
if (!$accepted) {
- echo "<center>Please <a href='login'>login</a> to do the challenges!</div>";
+ echo "<center>Please <a href='login'>login</a> to do the challenges!</center></div>";
+ htmlFooter();
+ return;
+}
+
+if (!hasCompletedTutorial($userID)) {
+ echo "<center>Please <a href='tutorial'>complete the tutorial</a> to unlock Challenge mode!</div>";
htmlFooter();
return;
}
-//TODO: Uncomment
-//if (!hasCompletedTutorial($userID)) {
-// echo "<center>Please <a href='tutorial'>complete the tutorial</a> to unlock Challenge mode!</div>";
-// htmlFooter();
-// return;
-//}
if(!isset($_GET["challengeMapID"]) OR !is_int($_GET["challengeMapID"] + 0))
{