diff options
Diffstat (limited to 'usr/local/bin/captiveportal_gather_stats.php')
-rw-r--r-- | usr/local/bin/captiveportal_gather_stats.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/bin/captiveportal_gather_stats.php b/usr/local/bin/captiveportal_gather_stats.php index 3ff03dd..63d91a2 100644 --- a/usr/local/bin/captiveportal_gather_stats.php +++ b/usr/local/bin/captiveportal_gather_stats.php @@ -77,9 +77,9 @@ if ($type == "loggedin") { @fclose($fd); foreach($cpdb as $user) { - $user_ip = $user['ip']; + $user_ip = $user[2]; // Record the timestamp - $timestamp = $user['allow_time']; + $timestamp = $user[0]; if ($timestamp > $previous_user_timestamp) $current_user_count = $current_user_count + 1; } |