summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Carper2009-07-22 02:53:44 (GMT)
committer Mike Carper2009-07-22 02:53:44 (GMT)
commitc3291467b7787d3df6634b4feef08a6d6aeba1e4 (patch)
treec95bf921242a224b157515dc8dab0fb953f7a54b
parent655485cb97f714b8bf41ff54dc0f837b06aca085 (diff)
#525494: Fixed Boost_stats.php undefined index on line 77.
-rw-r--r--stats/boost_stats.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/stats/boost_stats.php b/stats/boost_stats.php
index 659da86..aa78352 100644
--- a/stats/boost_stats.php
+++ b/stats/boost_stats.php
@@ -74,11 +74,13 @@ Function boost_stats_init() {
$stats = (isset($_GET['js']) && $_GET['js'] == 2) ? TRUE : NULL;
$session_id = session_id();
if (empty($session_id)) {
- $session_id = $_COOKIE[session_name()];
- if (empty($session_id)) {
+ if (empty($_COOKIE[session_name()])) {
// This only goes in the access log; only used for stats, not creds.
$session_id = md5($_SERVER['HTTP_USER_AGENT'] . ip_address());
}
+ else {
+ $session_id = $_COOKIE[session_name()];
+ }
}
$uid = 0;