diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-05-10 02:17:14 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-05-10 02:17:14 -0700 |
commit | 86aac4847705f0a4559400da6c0e9f1aeba5cdf8 (patch) | |
tree | c8c43ab196e5a0a4d280ea84152be5d0e061e0c7 /ajax/scores.ajax.php | |
parent | 51d99728286212717003009dd5706bb74edcb272 (diff) | |
download | pathery-86aac4847705f0a4559400da6c0e9f1aeba5cdf8.tar.xz |
Many bugs and PHP notices & warning fixes.
Diffstat (limited to 'ajax/scores.ajax.php')
-rw-r--r-- | ajax/scores.ajax.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ajax/scores.ajax.php b/ajax/scores.ajax.php index 897da3b..70d78ff 100644 --- a/ajax/scores.ajax.php +++ b/ajax/scores.ajax.php @@ -22,11 +22,14 @@ $json['page'] = $page; //TODO: Show notifications someplace else!
$note = false;
-if ($_SESSION['accepted'] == 1) {
+if (isset($_SESSION['accepted']) AND $_SESSION['accepted'] == 1) {
$userID = $_SESSION['userID'];
$note = getNotified($userID);
} else {
- if ($_SESSION['preCompletedTutorial'] == true && $_SESSION['preCompletedTutorialNotified'] == false) {
+ if (
+ isset($_SESSION['preCompletedTutorial']) &&
+ $_SESSION['preCompletedTutorial'] == true &&
+ $_SESSION['preCompletedTutorialNotified'] == false) {
$_SESSION['preCompletedTutorialNotified'] = true;
$note = "<strong>Tutorial Completed!</strong>";
$note .= "<center>You've unlocked: Blue Wall Color!";
|