From 86aac4847705f0a4559400da6c0e9f1aeba5cdf8 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Fri, 10 May 2013 02:17:14 -0700 Subject: Many bugs and PHP notices & warning fixes. --- ajax/scores.ajax.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ajax/scores.ajax.php') 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 = "Tutorial Completed!"; $note .= "
You've unlocked: Blue Wall Color!"; -- cgit v1.2.3