// ULPGC ecastro for stats report
function get_all_responses($question, $state) {
- $answers = new stdClass;
+ $answers = array();
if (is_array($question->options->subquestions)) {
foreach ($question->options->subquestions as $aid=>$answer) {
$r = new stdClass;
$answers[$aid] = $r;
}
} else {
- $answers[]="error"; // just for debugging, eliminate
+ $answers[] = "error"; // just for debugging, eliminate
}
$result = new stdClass;
$result->id = $question->id;