Comment 0 for bug 1011595

Revision history for this message
Kiran Hampal (khampal) wrote :

On the new system.

The offending code appears to be this:

$answers = array();
$solution = array();
foreach($question_data->ownAnswer as $answer) {
 if($answer->solution) {
  $solution[] = $answer;
  } else {
  $answers[$answer->votes] = $answer; // This appears to be the problem
 }
}
krsort($answers);