Index: openacs-4/packages/acs-kernel/sql/oracle/groups-body-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/oracle/groups-body-create.sql,v
diff -u -r1.20 -r1.21
--- openacs-4/packages/acs-kernel/sql/oracle/groups-body-create.sql	11 Sep 2024 06:15:47 -0000	1.20
+++ openacs-4/packages/acs-kernel/sql/oracle/groups-body-create.sql	3 Dec 2024 08:51:39 -0000	1.21
@@ -603,7 +603,7 @@
   begin
     update membership_rels
     set member_state = 'expired'
-    where rel_id = unapprove.rel_id;
+    where rel_id = expire.rel_id;
   end;
 
   procedure deleted (
