Index: openacs-4/packages/dotlrn/tcl/community-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/community-procs.xql,v diff -u -r1.81.2.1.4.7 -r1.81.2.1.4.8 --- openacs-4/packages/dotlrn/tcl/community-procs.xql 6 Mar 2005 15:23:33 -0000 1.81.2.1.4.7 +++ openacs-4/packages/dotlrn/tcl/community-procs.xql 26 Apr 2005 12:21:55 -0000 1.81.2.1.4.8 @@ -141,10 +141,9 @@ acs_users_all.first_names, acs_users_all.last_name, acs_users_all.email, - (select count(*) - from acs_rels - where rel_type = 'user_portrait_rel' - and object_id_one = dotlrn_member_rels_approved.user_id) as portrait_p, 0 as bio_p + (select count(*) from acs_rels where rel_type = 'user_portrait_rel' and object_id_one = dotlrn_member_rels_approved.user_id) as portrait_p, + (select count(*) from acs_attribute_values where object_id = dotlrn_member_rels_approved.user_id and attribute_id = +:bio_attribute_id and attr_value is not null) as bio_p from acs_users_all, dotlrn_member_rels_approved where dotlrn_member_rels_approved.community_id = :community_id