summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-03-14 01:59:19 -0700
committerPatrick Davison <snapwilliam@gmail.com>2013-03-14 01:59:19 -0700
commitfdbc1c157ef331d37b177f61de01fa298628bf02 (patch)
treef77d5380abc0825bd9c65e5b029a5fda662cc2f0
parent9b0b31db4eb2eddd674366cc79228cd66fb0b1bb (diff)
downloadpathery-fdbc1c157ef331d37b177f61de01fa298628bf02.tar.xz
Bugfix forever wall-notifications.
-rw-r--r--ajax/scores.ajax.php2
-rw-r--r--do.php3
2 files changed, 1 insertions, 4 deletions
diff --git a/ajax/scores.ajax.php b/ajax/scores.ajax.php
index f2d38fc..897da3b 100644
--- a/ajax/scores.ajax.php
+++ b/ajax/scores.ajax.php
@@ -1,7 +1,5 @@
<?
-// Session as read-only to not lock the file.
session_start();
-session_write_close();
$userID = $_SESSION['userID'];
diff --git a/do.php b/do.php
index f85539f..f444faf 100644
--- a/do.php
+++ b/do.php
@@ -52,8 +52,7 @@ if (isset($_GET['checkachieve']) && $_GET['checkachieve'] == 'true' && $_SESSION
$userID = $_SESSION['userID'];
//Located in includes/datas.php
$note = getNotified($userID);
- if ($note !== false)
- $json['notificationtext'] = $note;
+ if ($note !== false) $json['notificationtext'] = $note;
}
if ($_GET['r'] == 'reqMemberPage') {