rating MDLSITE-1028 when no ratings have been submitted the aggregate is now output...
authorAndrew Davis <andrew@affinitysoftware.net>
Wed, 13 Oct 2010 06:05:13 +0000 (06:05 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Wed, 13 Oct 2010 06:05:13 +0000 (06:05 +0000)
lib/outputrenderers.php

index 8978e62..24848a3 100644 (file)
@@ -1431,7 +1431,7 @@ class core_renderer extends renderer_base {
                     $aggregatestr .= round($rating->aggregate,1);
                 }
             } else {
-                $aggregatestr = ' - ';
+                $aggregatestr = '';
             }
 
             $countstr = html_writer::start_tag('span', array('id'=>"ratingcount{$rating->itemid}"));