diff options
author | raylu <raylu@mixpanel.com> | 2012-07-18 01:45:55 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2012-07-18 01:45:55 -0700 |
commit | 79d928cd42c32122edd47d1a450fb0c4ced3de2f (patch) | |
tree | 9989a6fc699476a01b7721a13a330f9e214fe0de /pages/tutorial.php | |
parent | 9f7a77eb549d1cfe93b406a0c29862db8664de76 (diff) | |
download | pathery-79d928cd42c32122edd47d1a450fb0c4ced3de2f.tar.xz |
fix lots of warnings, whitespace
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>
|