Index: openacs-4/packages/acs-tcl/tcl/admin-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/admin-procs.tcl,v diff -u -r1.9 -r1.9.2.1 --- openacs-4/packages/acs-tcl/tcl/admin-procs.tcl 18 Sep 2002 18:55:29 -0000 1.9 +++ openacs-4/packages/acs-tcl/tcl/admin-procs.tcl 7 Jun 2003 01:47:32 -0000 1.9.2.1 @@ -4,7 +4,7 @@ @author Multiple @creation-date 11/18/98 - @cvs-id $Id$ + @cvs-id admin-procs.tcl,v 1.9 2002/09/18 18:55:29 jeffd Exp } @@ -432,15 +432,15 @@ if { [llength $join_clauses] == 0 } { set final_query "select [join $select_list ",\n "] from [join $tables ", "]" - if ![empty_string_p $complete_where] { + if { ![empty_string_p $complete_where] } { append final_query "\nwhere $complete_where" } } else { # we're joining at set final_query "select [join $select_list ",\n "] from [join $tables ", "] where [join $join_clauses "\nand "]" - if ![empty_string_p $complete_where] { + if { ![empty_string_p $complete_where] } { append final_query "\n and ($complete_where)" } }