Update Datapoint Legend
From PHP Online Survey Infrastructure
Here's a sample of updates made to (older version) of class_admin.php ->
function db_results_schema($this, $display=1) {
....
<add> $answer_array = array();
foreach($this->question as $question) {
....
if ($display) {
....
<add>
if (is_array($question->answer)) {
$answer_counter = 0;
if ($question->type == 'mc_check') $answercount_display = $question->qnum;
else $answercount_display = "1";
foreach ($question->answer as $answer) {
if ($question->type == 'mc_check')
$ans = $ans . '(q' . $answercount_display . ') ' .
$question->answer[$answer_counter] . '
';
else $ans = $ans . $answercount_display . ' ' .
$question->answer[$answer_counter] . '
';
$answer_counter++;
$answercount_display++;
}
}

