Index: openacs-4/packages/assessment/sql/postgresql/assessment-actions-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/sql/postgresql/assessment-actions-create.sql,v
diff -u -r1.16 -r1.17
--- openacs-4/packages/assessment/sql/postgresql/assessment-actions-create.sql	12 Jul 2018 09:00:13 -0000	1.16
+++ openacs-4/packages/assessment/sql/postgresql/assessment-actions-create.sql	3 Sep 2024 15:37:35 -0000	1.17
@@ -240,7 +240,7 @@
 	'Add to Community',
 	'Add user to a community',
 	'set user_id [ad_conn user_id]
-if { [exists_and_not_null subject_id] } {
+if { [info exists subject_id] && $subject_id ne "" } {
 	set user_id $subject_id
 } 
 dotlrn_privacy::set_user_guest_p -user_id $user_id -value "t"
