Fix missing c_id

1.10.x
Julio Montoya 9 years ago
parent 5c21e79d8b
commit 797043fb48
  1. 4
      main/inc/lib/online.inc.php

@ -42,8 +42,8 @@ function LoginCheck($uid)
$query = "REPLACE INTO ".$online_table ." (login_id,login_user_id,login_date,user_ip, c_id, session_id, access_url_id)
VALUES ($uid,$uid,'$login_date','$user_ip', '".$_course['real_id']."' , '$session_id' , '$access_url_id' )";
} else {
$query = "REPLACE INTO ".$online_table ." (login_id,login_user_id,login_date,user_ip, session_id, access_url_id)
VALUES ($uid,$uid,'$login_date','$user_ip', '$session_id', '$access_url_id')";
$query = "REPLACE INTO ".$online_table ." (login_id,login_user_id,login_date,user_ip, c_id, session_id, access_url_id)
VALUES ($uid,$uid,'$login_date','$user_ip', 0, '$session_id', '$access_url_id')";
}
Database::query($query);
}

Loading…
Cancel
Save