### Eclipse Workspace Patch 1.0
#P HEAD
Index: multichoice.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/quiz/multichoice.module,v
retrieving revision 1.54
diff -u -r1.54 multichoice.module
--- multichoice.module	6 Dec 2007 22:58:00 -0000	1.54
+++ multichoice.module	7 Dec 2007 18:35:38 -0000
@@ -265,7 +265,7 @@
 function _multichoice_find_correct($answers) {
   if (is_array($answers)) {
     foreach ($answers as $id => $answer) {
-      if ($answer['points']) {
+      if ($answer['is_correct']) {
         return $id;
       }
     }
@@ -646,14 +646,14 @@
     $cols = array();
 
     $cols[] = $answer['answer'];
-    if ($showpoints) $cols[] = (($answer['points'] == 0) ? theme_multichoice_unselected() : theme_multichoice_selected());
+    if ($showpoints) $cols[] = (($answer['is_correct'] == 0) ? theme_multichoice_unselected() : theme_multichoice_selected());
     $selected = (array_search($answer['answer_id'], $tried) !== FALSE);
     $cols[] = ($selected ? theme_multichoice_selected() : theme_multichoice_unselected());
     if ($showfeedback) $cols[] = ($selected ? '<div class="quiz_answer_feedback">'. $answer['feedback'] .'</div>' : '');
 
     $rows[] = $cols;
   	
-    if ($answer['points'] > 0) {
+    if ($answer['is_correct'] > 0) {
       $correctanswers[] = $answer['answer_id'];
     }
   }
@@ -821,7 +821,7 @@
     $cols = array();
     $cols[] = $answer['answer'];
     if ($showpoints) {
-      $cols[] = $answer['points'] ? theme_multichoice_selected() : theme_multichoice_unselected();
+      $cols[] = $answer['is_correct'] ? theme_multichoice_selected() : theme_multichoice_unselected();
     }
     $cols[] = $answer['user_answer'] ? theme_multichoice_selected() : theme_multichoice_unselected();
     $cols[] = ($showfeedback && $answer['user_answer']) ? '<div class="quiz_answer_feedback">'. $answer['feedback'] .'</div>' : '';
@@ -841,7 +841,7 @@
       $answers[] = $answer['answer'];
       $feedbacks[] = $answer['feedback'];
     }
-    if ($answer['points']) {
+    if ($answer['is_correct']) {
       $corrects[] = $answer['answer'];
     }
   }
