Index: openacs-4/packages/forums/tcl/forums-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/tcl/forums-procs.tcl,v diff -u -r1.38.2.8 -r1.38.2.9 --- openacs-4/packages/forums/tcl/forums-procs.tcl 15 Jul 2024 12:07:44 -0000 1.38.2.8 +++ openacs-4/packages/forums/tcl/forums-procs.tcl 6 Aug 2024 10:16:11 -0000 1.38.2.9 @@ -124,6 +124,17 @@ # We get the package from the forum # set package_id $forum(package_id) + + } elseif {![ns_conn isconnected]} { + # + # All the next tests require an active connection. The + # messages with "ad_log warning" are not helpful and might be + # overwhelming, especially when called via the search + # callback. So, provide a shorter message. + + ns_log notice "forum::attachments_enabled_p must receive a" \ + "valid -forum_id when called in the background" + return 0 } elseif {"forums" eq [ad_conn package_key]} { #