diff options
Diffstat (limited to 'lib/class/rating.class.php')
-rw-r--r-- | lib/class/rating.class.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/class/rating.class.php b/lib/class/rating.class.php index f9dd0794..136d212e 100644 --- a/lib/class/rating.class.php +++ b/lib/class/rating.class.php @@ -44,10 +44,12 @@ class Rating { $this->id = $id; $this->type = $type; - if (intval($id) > 1) { $this->get_average(); } + else { + $this->rating='0'; + } } // Rating |