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 -N -r1.20 -r1.21 --- openacs-4/packages/acs-templating/www/scripts/xinha/attach-file.tcl 1 Oct 2017 12:16:05 -0000 1.20 +++ openacs-4/packages/acs-templating/www/scripts/xinha/attach-file.tcl 7 Apr 2018 19:37:20 -0000 1.21 @@ -106,7 +106,7 @@ } set error_p 0 # check file name - if { [info exists f_url] && $f_url eq "" && $url_ok_btn ne ""} { + if { $f_url eq "" && $url_ok_btn ne ""} { template::form::set_error upload_form f_url "Specify a [_ acs-templating.Link_Url]" set error_p 1 } @@ -226,7 +226,7 @@ # see the parent object set f_href "/image/${item_id}/private/${parent_id}/${file_name}" } else { - if { ([info exists f_url] && $f_url ne "") && $url_ok_btn ne "" } { + if { $f_url ne "" && $url_ok_btn ne "" } { set f_href $f_url } else { set f_href "/file/${item_id}/${file_name}"