[svn r12684] fix a bug when calculating time spent on the platform in a form 1.6.5 portal

skala
Eric Marguin 18 years ago
parent 0e1e48b06c
commit d75db7de22
  1. 2
      main/inc/lib/tracking.lib.php

@ -43,7 +43,7 @@ class Tracking {
$tbl_track_login = Database :: get_statistic_table(TABLE_STATISTIC_TRACK_E_LOGIN);
$sql = 'SELECT login_date, logout_date FROM ' . $tbl_track_login . '
WHERE login_user_id = ' . intval($user_id);
WHERE login_user_id = ' . intval($user_id).' AND logout_date IS NOT NULL';
$rs = api_sql_query($sql);

Loading…
Cancel
Save