Skip to content

Commit

Permalink
rating MDL-24558 added better handling for when there are no ratings …
Browse files Browse the repository at this point in the history
…submitted
  • Loading branch information
Andrew Davis committed Oct 7, 2010
1 parent 4d90912 commit 695719f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rating/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
$rm = new rating_manager();
$ratings = $rm->get_all_ratings_for_item($ratingoptions);
if (!$ratings) {
print_error('noresult', 'forum', '', format_string($itemid));
$msg = get_string('noratings','rating');
echo html_writer::tag('div', $msg, array('class'=>'mdl-align'));
} else {
$sortargs = "contextid=$contextid&itemid=$itemid&scaleid=$scaleid";
if($popup) {
Expand Down

0 comments on commit 695719f

Please sign in to comment.