diff options
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!";
|