Index: openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk.tcl,v diff -u -N -r1.57 -r1.58 --- openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk.tcl 14 Sep 2005 03:41:40 -0000 1.57 +++ openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk.tcl 15 Sep 2005 05:58:11 -0000 1.58 @@ -578,9 +578,15 @@ set instructor_names [list] set instructor_ids [list] + set bios_present_p 0 foreach instructor $instructors { lappend instructor_names [lindex $instructor 1] lappend instructor_ids [lindex $instructor 0] + if {!$bios_present_p} { + if {![empty_string_p [acs_user::get_element -user_id [lindex $instructor 0] -element bio]]} { + set bios_present_p 1 + } + } } if { [llength $instructor_names] == 1 } { @@ -591,7 +597,8 @@ set instructor_names "" } # if { ! [empty_string_p $instructor_names] && $member_p } { } - if { ! [empty_string_p $instructor_names] } { + # if { ! [empty_string_p $instructor_names] } { + if { $bios_present_p } { append instructor_names " [_ dotlrn-ecommerce.view_bios]" }