Index: openacs-4/packages/general-comments/tcl/general-comments-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/general-comments/tcl/general-comments-procs.tcl,v diff -u -r1.20 -r1.21 --- openacs-4/packages/general-comments/tcl/general-comments-procs.tcl 5 May 2007 15:54:47 -0000 1.20 +++ openacs-4/packages/general-comments/tcl/general-comments-procs.tcl 27 Oct 2014 16:41:42 -0000 1.21 @@ -48,7 +48,7 @@ # created comment. This is done here to ensure that # a fail on permissions granting will not leave # the comment with incorrect permissions. - if {![empty_string_p $user_id]} { + if {$user_id ne ""} { permission::grant -object_id $comment_id \ -party_id $user_id \ -privilege "read" @@ -96,7 +96,7 @@ # get the package url set package_url [general_comments_package_url] - if { [empty_string_p $package_url] } { + if { $package_url eq "" } { return "" } @@ -138,7 +138,7 @@ set content_select [db_map content_select] ;# ", r.content" } - if { ![empty_string_p $context_id] } { + if { $context_id ne "" } { set context_clause "and o.context_id = :context_id" } else { set context_clause "" @@ -209,7 +209,7 @@ and r.revision_id = i.live_revision" { append attachments_html "
-- $author [_ general-comments.on] $pretty_date2 ([_ general-comments.view_details])
\n" + append html "-- $author [_ general-comments.on] $pretty_date2 ([_ general-comments.view_details])
\n" } else { - append html "