Index: openacs-4/packages/acs-lang/tcl/lang-message-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/lang-message-procs.tcl,v diff -u -r1.68.2.1 -r1.68.2.2 --- openacs-4/packages/acs-lang/tcl/lang-message-procs.tcl 14 Feb 2019 16:15:00 -0000 1.68.2.1 +++ openacs-4/packages/acs-lang/tcl/lang-message-procs.tcl 1 Mar 2019 14:10:18 -0000 1.68.2.2 @@ -545,7 +545,9 @@ lappend where_clauses "$col = :${col}" } } - set where_clause [ad_decode $where_clauses "" "" "and [join $where_clauses " and "]"] + if {[llength $where_clause] > 0} { + set where_clause "and [join $where_clauses \" and \"]" + } return [db_string conflict_count " select count(*)