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.20 -r1.21
--- openacs-4/packages/acs-content-repository/tcl/filter-procs.tcl	4 Jul 2004 11:19:16 -0000	1.20
+++ openacs-4/packages/acs-content-repository/tcl/filter-procs.tcl	11 Jul 2004 19:11:03 -0000	1.21
@@ -74,12 +74,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