Index: trunk/kernel/include/itemrating.php =================================================================== diff -u -r13 -r1099 --- trunk/kernel/include/itemrating.php (.../itemrating.php) (revision 13) +++ trunk/kernel/include/itemrating.php (.../itemrating.php) (revision 1099) @@ -8,6 +8,7 @@ $this->clsItemDB(); $this->tablename = GetTablePrefix()."ItemRating"; $this->id_field = "RatingId"; + $this->NoResourceId=1; $this->type=-10; if($RatingId!=NULL) $this->LoadFromDatabase($RatingId); @@ -53,7 +54,7 @@ $this->Set("CreatedOn",adodb_date("U")); $this->Set("IPAddress",$REMOTE_ADDR); - if(ip_exists($this->Get("IPAddress"),$this->Get("ItemId"),$this->SourceTable)) + if(ip_exists($this->Get("IPAddress"),$this->Get("ItemId"),$this->tablename)) { //$Errors->AddError("error.already_rated","","","","clsItemRating","Create"); return false;