Skip to content
Browse files

Change getenv to $_server function

  • Loading branch information...
1 parent dbef0c5 commit 7e7ef98cf2c7d73c6db6dfde713caf377acb3115 unknown committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 catalog/includes/functions/whos_online.php
View
4 catalog/includes/functions/whos_online.php
@@ -26,8 +26,8 @@ function tep_update_whos_online() {
}
$wo_session_id = tep_session_id();
- $wo_ip_address = getenv('REMOTE_ADDR');
- $wo_last_page_url = getenv('REQUEST_URI');
+ $wo_ip_address = $_SERVER["REMOTE_ADDR"];
+ $wo_last_page_url = $_SERVER["REQUEST_URI"];
$current_time = time();
$xx_mins_ago = ($current_time - 900);

0 comments on commit 7e7ef98

Please sign in to comment.
Something went wrong with that request. Please try again.