Fixed Into survey when not have nothing quiz show a warning into reports DT#5496

skala
Arthur Portugal 16 years ago
parent c354130aa1
commit 09b4613083
  1. 6
      main/survey/survey.lib.php

@ -2860,6 +2860,7 @@ class SurveyUtil {
// displaying the table: the content // displaying the table: the content
if(is_array($options)){
foreach ($options as $key=>$value) foreach ($options as $key=>$value)
{ {
$absolute_number = $data[$value['question_option_id']]['total']; $absolute_number = $data[$value['question_option_id']]['total'];
@ -2884,7 +2885,7 @@ class SurveyUtil {
echo ' </td>'; echo ' </td>';
echo ' </tr>'; echo ' </tr>';
} }
}
// displaying the table: footer (totals) // displaying the table: footer (totals)
echo ' <tr>'; echo ' <tr>';
echo ' <td style="border-top:1px solid black;"><b>'.get_lang('Total').'</b></td>'; echo ' <td style="border-top:1px solid black;"><b>'.get_lang('Total').'</b></td>';
@ -3211,7 +3212,7 @@ class SurveyUtil {
echo '<td align="center">'.$value.'</td>'; echo '<td align="center">'.$value.'</td>';
} }
} }
if(is_array($possible_options)) {
foreach ($possible_options as $question_id=>$possible_option) foreach ($possible_options as $question_id=>$possible_option)
{ {
if ($questions[$question_id]['type'] == 'open') if ($questions[$question_id]['type'] == 'open')
@ -3240,6 +3241,7 @@ class SurveyUtil {
} }
} }
}
echo '</tr>'; echo '</tr>';
} }

Loading…
Cancel
Save