From: tjhunt Date: Tue, 19 Aug 2008 05:17:07 +0000 (+0000) Subject: Fix up XHTML strick breakage introduce during the fix for MDL-13478. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4ec64b4f5edd6b5f1989a334134bd02290e1653c;p=moodle.git Fix up XHTML strick breakage introduce during the fix for MDL-13478. --- diff --git a/mod/choice/lib.php b/mod/choice/lib.php index 4225e9a159..bafb5ef848 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -350,11 +350,13 @@ function choice_show_results($choice, $course, $cm, $allresponses, $forcepublish $viewresponses = has_capability('mod/choice:readresponses', $context); switch ($forcepublish) { case CHOICE_PUBLISH_NAMES: - echo '
'; - echo '
'; + echo '
'; + if ($viewresponses) { + echo ''; echo '
'; echo ''; echo ''; + } echo ""; echo ""; @@ -462,9 +464,9 @@ function choice_show_results($choice, $course, $cm, $allresponses, $forcepublish echo ''; } - echo "
"; + echo "
"; if ($viewresponses) { - echo "
"; + echo ""; } break;