Index: openacs-4/packages/acs-content-repository/tcl/filter-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/tcl/filter-procs.tcl,v diff -u -r1.16.2.2 -r1.16.2.3 --- openacs-4/packages/acs-content-repository/tcl/filter-procs.tcl 4 Jul 2004 11:22:22 -0000 1.16.2.2 +++ openacs-4/packages/acs-content-repository/tcl/filter-procs.tcl 11 Jul 2004 19:15:21 -0000 1.16.2.3 @@ -72,12 +72,14 @@ return } - # Get the live revision - set revision_id [db_string get_revision ""] - if { [template::util::is_nil revision_id] } { - ns_log notice "content::get_content: No live revision for item $item_id" - return + # Try to get the live revision + ns_log notice "content::get_content: trying to get live revision" + set revision_id [db_string get_revision ""] + if { [template::util::is_nil revision_id] } { + ns_log notice "content::get_content: No live revision for item $item_id" + return + } } # Get the mime type, decide if we want the text