[svn r14433] Also look for the course id when reading the scores (line 636)

skala
Olivier Sourie 18 years ago
parent d1c4259047
commit 00091e2d36
  1. 2
      main/exercice/exercice.php

@ -633,7 +633,7 @@ if($show == 'test'){
<td align='center'><?php
$eid = $row['id'];
$uid= api_get_user_id();
$qry = "select * from ".$TBL_TRACK_EXERCICES." where exe_exo_id = $eid and exe_user_id = $uid";
$qry = "select * from `".$TBL_TRACK_EXERCICES."` where exe_exo_id = $eid and exe_user_id = $uid and exe_cours_id = '".api_get_course_id()."'";
$qryres = api_sql_query($qry);
$num = Database::num_rows($qryres);
$row = Database::fetch_array($qryres);

Loading…
Cancel
Save