Index: temp_moodle_dev/moodle/mod/choice/lib.php =================================================================== RCS file: /usr/local/cvsroot/temp_moodle_dev/moodle/mod/choice/lib.php,v diff -u -r1.7 -r1.8 --- temp_moodle_dev/moodle/mod/choice/lib.php 12 Jan 2009 05:43:02 -0000 1.7 +++ temp_moodle_dev/moodle/mod/choice/lib.php 28 Oct 2009 07:32:04 -0000 1.8 @@ -328,8 +328,9 @@ $forcepublish = $choice->publish; } - if (!$allresponses) { + if (empty($allresponses)) { print_heading(get_string("nousersyet")); + return false; } $totalresponsecount = 0; @@ -380,15 +381,17 @@ // we do not get
"; - print_user_picture($user->id, $course->id, $user->picture); - echo " | "; - echo "wwwroot/user/view.php?id=$user->id&course=$course->id\">"; - echo fullname($user, $hascapfullnames); - echo ""; - echo " |
"; + print_user_picture($user->id, $course->id, $user->picture); + echo " | "; + echo "wwwroot/user/view.php?id=$user->id&course=$course->id\">"; + echo fullname($user, $hascapfullnames); + echo ""; + echo " |