[svn r17713] minor-style changes-it was replace date "now" of mysql by date of php server - (partial FS#3455)

skala
Isaac Flores 16 years ago
parent 8e89890752
commit 0d9d793c20
  1. 3
      main/inc/lib/online.inc.php

@ -90,8 +90,9 @@ function LoginDelete($user_id)
function WhoIsOnline($uid=0,$statistics_database='',$valid)
{
$valid = (int) $valid;
$current_date=date('Y-m-d H:i:s',time());
$track_online_table = Database::get_statistic_table(TABLE_STATISTIC_TRACK_E_ONLINE);
$query = "SELECT login_user_id,login_date FROM ".$track_online_table ." WHERE DATE_ADD(login_date,INTERVAL $valid MINUTE) >= NOW() ";
$query = "SELECT login_user_id,login_date FROM ".$track_online_table ." WHERE DATE_ADD(login_date,INTERVAL $valid MINUTE) >= '".$current_date."' ";
$result = @api_sql_query($query,__FILE__,__LINE__);
if (count($result)>0)
{

Loading…
Cancel
Save