Commit b10b7d54 authored by David Morley's avatar David Morley

lol all ratings cap at 10 - i guess i am not averaging right.

parent 34167b98
......@@ -39,7 +39,9 @@
$userrating = array_sum($userratingavg) / $userrate;
$adminrating = array_sum($adminratingavg) / $adminrate;
if (!$userrating) {$userrating=8;}
if ($userrating > 10) {$userrating=10;}
if (!$adminrating) {$adminrating=8;}
if ($adminrating > 10) {$adminrating=10;}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment