diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..187adb2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/nbproject/ \ No newline at end of file diff --git a/index.php b/index.php index 43f48bf..439700b 100644 --- a/index.php +++ b/index.php @@ -657,18 +657,16 @@ public function grs_legend($legend, $id) $avg = $score ? round((float)(($score/$votes)*($best/5)), 2) : 0; $per = $score ? round((float)((($score/$votes)/5)*100), 2) : 0; - $leg = str_replace('[total]', ''.$votes.'', $legend); - $leg = str_replace('[avg]', ''.$avg.'', $leg); + $leg = str_replace('[total]', ''.$votes.'', $legend); + $leg = str_replace('[avg]', ''.$avg.'', $leg); $leg = str_replace('[per]', $per .'%', $leg); $leg = str_replace('[s]', $votes == 1 ? '' : 's', $leg); - $snippet = '