Fixing survey UI see #5956

skala
Yoselyn Castillo 13 years ago
parent fc0107e74e
commit c7a53f1a0f
  1. 4
      main/survey/survey.lib.php

@ -1634,7 +1634,11 @@ class ch_yesno extends survey_question {
if (is_array($form_content['options'])) { // Check if data is correct if (is_array($form_content['options'])) { // Check if data is correct
foreach ($form_content['options'] as $key => & $value) { foreach ($form_content['options'] as $key => & $value) {
if ($form_content['display'] == 'vertical') {
$this->html .= '<label class="radio">'; $this->html .= '<label class="radio">';
} else {
$this->html .= '<label class="radio inline">';
}
$value_to_show = $value; $value_to_show = $value;
if (substr_count($value, '<p>') == 1) { if (substr_count($value, '<p>') == 1) {

Loading…
Cancel
Save