diff options
Diffstat (limited to 'pages/tutorial.php')
-rw-r--r-- | pages/tutorial.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pages/tutorial.php b/pages/tutorial.php index 8e3b583..1965f51 100644 --- a/pages/tutorial.php +++ b/pages/tutorial.php @@ -12,7 +12,7 @@ topbar($Links); //!! Turn this into a function?
-if ($_SESSION[accepted] == 1) {
+if ($accepted) {
include_once ('./includes/db.inc.php');
$userID = $_SESSION['userID'];
@@ -28,9 +28,8 @@ if ($_SESSION[accepted] == 1) { }
?>
<script type="text/javascript">
-playerWallColor = '<?PHP echo $wallColor; ?>';
-playerWallEmblem = '<?PHP echo $wallEmblem; ?>';
-<?PHP echo $noteScript; ?>
+playerWallColor = '<?PHP echo isset($wallColor) ? $wallColor : ''; ?>';
+playerWallEmblem = '<?PHP echo isset($wallEmblem) ? $wallEmblem : ''; ?>';
</script>
<script src="sounds/script/soundmanager.js"></script>
|