diff options
Diffstat (limited to 'lib/class/rating.class.php')
-rw-r--r-- | lib/class/rating.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/rating.class.php b/lib/class/rating.class.php index 136d212e..e79ea0ef 100644 --- a/lib/class/rating.class.php +++ b/lib/class/rating.class.php @@ -41,8 +41,8 @@ class Rating { */ function Rating($id,$type) { - $this->id = $id; - $this->type = $type; + $this->id = intval($id); + $this->type = sql_escape($type); if (intval($id) > 1) { $this->get_average(); |