Index: openacs-4/packages/acs-subsite/www/shared/community-member.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/shared/community-member.tcl,v diff -u -r1.21.2.2 -r1.21.2.3 --- openacs-4/packages/acs-subsite/www/shared/community-member.tcl 14 Dec 2015 18:06:18 -0000 1.21.2.2 +++ openacs-4/packages/acs-subsite/www/shared/community-member.tcl 2 Jan 2016 20:57:58 -0000 1.21.2.3 @@ -53,8 +53,11 @@ set bind_vars [ad_tcl_vars_to_ns_set user_id] -if { ![db_0or1row user_information "select first_names, last_name, email, priv_email, url, creation_date, member_state from cc_users where user_id = :user_id" -bind $bind_vars]} { - +if { ![db_0or1row user_information { + select first_names, last_name, email, priv_email, url, creation_date, member_state + from cc_users + where user_id = :user_id +} -bind $bind_vars] } { ad_return_exception_page 404 "No user found" "There is no community member with the user_id of $user_id" ns_log Notice "Could not find user_id $user_id in community-member.tcl from [ad_conn peeraddr]" return