Index: openacs-4/packages/ratings/sql/postgresql/ratings-procs.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ratings/sql/postgresql/ratings-procs.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/ratings/sql/postgresql/ratings-procs.sql	19 May 2004 19:00:03 -0000	1.1
+++ openacs-4/packages/ratings/sql/postgresql/ratings-procs.sql	21 May 2004 07:48:04 -0000	1.2
@@ -199,7 +199,7 @@
        and owner_id = p_user;
 
     if v_rating_id is null then
-        PERFORM rating__new(null, p_dimension_id, p_object_id, p_rating, p_title, p_package_id, p_date, p_user, p_ip, p_context_id);
+        v_rating_id := rating__new(null, p_dimension_id, p_object_id, p_rating, p_title, p_package_id, p_date, p_user, p_ip, p_context_id);
     else
         UPDATE ratings
            SET rating = p_rating
