Index: openacs-4/packages/xowiki/tcl/includelet-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/includelet-procs.tcl,v diff -u -r1.191.2.7 -r1.191.2.8 --- openacs-4/packages/xowiki/tcl/includelet-procs.tcl 11 Feb 2014 11:58:18 -0000 1.191.2.7 +++ openacs-4/packages/xowiki/tcl/includelet-procs.tcl 9 Mar 2014 13:00:59 -0000 1.191.2.8 @@ -1335,15 +1335,16 @@ set sql [::xo::dc select \ -vars "count(*) as nr,tag" \ -from xowiki_tags \ - -where "package_id=$package_id" \ + -where "package_id = :package_id" \ -groupby tag \ -orderby tag \ -limit $limit] } else { set label [_ xowiki.your_tags_label] - set tag_type tag + set tag_type tag + set user_id [::xo::cc user_id] set sql "select count(*) as nr,tag from xowiki_tags where \ - user_id=[::xo::cc user_id] and package_id=$package_id group by tag order by tag" + user_id = :user_id and package_id = :package_id group by tag order by tag" } set entries [list]