From 4bcd49bebdaf83aac86bf6e9a3070e13148de4ec Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 25 Jun 2007 09:21:49 +0000 Subject: [PATCH] Patch from Chris Holmes for MDL-10027, merged from 1.8 --- mod/survey/lib.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mod/survey/lib.php b/mod/survey/lib.php index 8b7f0fcb06..26e3a54965 100644 --- a/mod/survey/lib.php +++ b/mod/survey/lib.php @@ -393,8 +393,8 @@ function survey_print_multi($question) { echo "$qnum"; echo "$q->text"; for ($i=1;$i<=$numoptions;$i++) { - $screenreader = !empty($USER->screenreader)?"
":''; - echo "".$screenreader."id\" id=\"q$P$q->id".$i."\" value=\"$i\" alt=\"$i\" />"; + $screenreader = !empty($USER->screenreader)?"
":''; + echo "".$screenreader."id\" id=\"q$P" . $q->id . "_$i\" value=\"$i\" alt=\"$i\" />"; } echo "id\" value=\"0\" checked=\"checked\" alt=\"0\" />"; $checklist["q$P$q->id"] = $numoptions; @@ -406,8 +406,8 @@ function survey_print_multi($question) { echo "$stripreferthat "; echo "$q->text"; for ($i=1;$i<=$numoptions;$i++) { - $screenreader = !empty($USER->screenreader)?"
":''; - echo "".$screenreader."id\" id=\"qP$q->id".$i."\" value=\"$i\" alt=\"$i\"/>"; + $screenreader = !empty($USER->screenreader)?"
":''; + echo "".$screenreader."id\" id=\"qP" . $q->id . "_$i\" value=\"$i\" alt=\"$i\"/>"; } echo "id\" value=\"0\" checked=\"checked\" alt=\"0\" />"; echo ""; @@ -417,8 +417,8 @@ function survey_print_multi($question) { echo "$strifoundthat "; echo "$q->text"; for ($i=1;$i<=$numoptions;$i++) { - $screenreader = !empty($USER->screenreader)?"
":''; - echo "".$screenreader."id\" id=\"q$q->id".$i."\" value=\"$i\" alt=\"$i\" />"; + $screenreader = !empty($USER->screenreader)?"
":''; + echo "".$screenreader."id\" id=\"q" . $q->id . "_$i\" value=\"$i\" alt=\"$i\" />"; } echo "id\" value=\"0\" checked=\"checked\" alt=\"0\" />"; $checklist["qP$q->id"] = $numoptions; -- 2.39.5