Browse Source

Minor changes

Julio Montoya 14 years ago
parent
commit
279ab9f2e6
2 changed files with 4 additions and 13 deletions
  1. 3 12
      main/inc/lib/events.lib.inc.php
  2. 1 1
      main/mySpace/myStudents.php

+ 3 - 12
main/inc/lib/events.lib.inc.php

@@ -481,18 +481,9 @@ function exercise_attempt($score, $answer, $quesId, $exeId, $j, $exercise_id = 0
 	} else {
 		// anonymous
 		$user_id = api_get_anonymous_id();
-	}    
+	}
     
-	$sql = "INSERT INTO $TBL_TRACK_ATTEMPT (
-			   exe_id,
-			   user_id,
-			   question_id,
-			   answer,
-			   marks,
-			   course_code,
-			   position,
-			   tms
-			  )
+	$sql = "INSERT INTO $TBL_TRACK_ATTEMPT (exe_id, user_id, question_id, answer, marks, course_code, position, tms )
 			  VALUES (
 			  ".$exeId.",
 			  ".$user_id.",
@@ -503,7 +494,7 @@ function exercise_attempt($score, $answer, $quesId, $exeId, $j, $exercise_id = 0
 			   '".$j."',
 			   '".$reallyNow."'
 			  )";
-              
+    error_log($sql);
 	if (!empty($quesId) && !empty($exeId) && !empty($user_id)) {
 		$res = Database::query($sql);		
 		if (defined('ENABLED_LIVE_EXERCISE_TRACKING')){

+ 1 - 1
main/mySpace/myStudents.php

@@ -50,7 +50,7 @@ if (isset ($_GET['from']) && $_GET['from'] == 'myspace') {
 }
 
 $nameTools = get_lang('StudentDetails');
-$cidReset = true;
+//$cidReset = true;
 $get_course_code = Security :: remove_XSS($_GET['course']);
 if (isset ($_GET['details'])) {
 	if (!empty ($_GET['origin']) && $_GET['origin'] == 'user_course') {