Index: openacs-4/packages/acs-templating/www/scripts/xinha/attach-file.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/scripts/xinha/attach-file.tcl,v diff -u -r1.18.2.1 -r1.18.2.2 --- openacs-4/packages/acs-templating/www/scripts/xinha/attach-file.tcl 10 Sep 2015 08:22:17 -0000 1.18.2.1 +++ openacs-4/packages/acs-templating/www/scripts/xinha/attach-file.tcl 2 Jan 2016 21:57:18 -0000 1.18.2.2 @@ -36,7 +36,7 @@ if {!$write_p} { # if parent_id does not exist yet, let's use the pacakage_id - if { ![db_0or1row "check_parent" "select object_id from acs_objects where object_id=:parent_id"] } { + if { ![db_0or1row check_parent {select object_id from acs_objects where object_id = :parent_id}] } { set parent_id $package_id }