Skip to content
Browse files

*** empty log message ***

  • Loading branch information...
1 parent 8e1314c commit 6228beb135ad5bc58321dfa5c7bbfc7bfa950c67 ecastrolt committed Jun 10, 2005
Showing with 4 additions and 3 deletions.
  1. +4 −3 mod/quiz/report/analysis/report.php
View
7 mod/quiz/report/analysis/report.php
@@ -121,12 +121,13 @@ function display($quiz, $cm, $course) { /// This function just displays the
if (!quiz_get_question_options($quizquestions)) {
error('Could not load question options');
}
-
+ echo "estoy aqui";
// Restore the question sessions to their most recent states
// creating new sessions where required
if (!$states = quiz_restore_question_sessions($quizquestions, $quiz, $attempt)) {
error('Could not restore question sessions');
}
+ print_object($states);
$numbers = explode(',', $questionlist);
$statsrow = array();
foreach ($numbers as $i) {
@@ -425,7 +426,7 @@ function report_question_stats(&$q, &$attemptscores, &$questionscores, $top, $bo
$sumg2 = $sumx2->x;
$sumq2 = $sumx2->y;
$sumxy = array_reduce($qstats, "stats_sumxy");
- $sumgq = $sumxy;
+ $sumgq = $sumxy->x;
$q['count'] = $n;
$q['facility'] = $sumq/$n;
@@ -670,7 +671,7 @@ function stats_sumx2($sum, $data){
}
function stats_sumxy($sum, $data){
- $sum += $data[0]*$data[1];
+ $sum->x += $data[0]*$data[1];
return $sum;
}

0 comments on commit 6228beb

Please sign in to comment.
Something went wrong with that request. Please try again.