Index: openacs-4/packages/cms/sql/postgresql/cms-workflow.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms/sql/postgresql/cms-workflow.sql,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/cms/sql/postgresql/cms-workflow.sql	22 May 2001 03:47:49 -0000	1.3
+++ openacs-4/packages/cms/sql/postgresql/cms-workflow.sql	22 May 2001 04:26:49 -0000	1.4
@@ -545,7 +545,7 @@
 returns integer as '
 declare
   p_task_id                        alias for $1;  
-  p_hold_timeout                   alias for $2;  
+  p_hold_timeout                   alias for $2;  -- default null  
   p_user_id                        alias for $3;  
   p_ip_address                     alias for $4;  
   p_msg                            alias for $5;  
@@ -687,7 +687,7 @@
     else if v_task_state != ''started'' then
       raise EXCEPTION '' -20000:  Cannot chack in this task because it is in an invalid state %'', v_task_state;
     else
-      raise EXCEPTION '' -20000: Cannot check in this task because user_id % is not the holding user'', user_id;
+      raise EXCEPTION '' -20000: Cannot check in this task because user_id % is not the holding user'', p_user_id;
     end if; end if;
 
     return 0; 
