Index: openacs-4/packages/file-storage/www/download/index.vuh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/download/index.vuh,v diff -u -r1.10.4.1 -r1.10.4.2 --- openacs-4/packages/file-storage/www/download/index.vuh 6 Sep 2013 16:54:48 -0000 1.10.4.1 +++ openacs-4/packages/file-storage/www/download/index.vuh 8 Sep 2013 08:11:58 -0000 1.10.4.2 @@ -19,10 +19,10 @@ } } -if {![exists_and_not_null version_id] && [info exists file_id]} { +if {(![info exists version_id] || $version_id eq "") && [info exists file_id]} { set version_id [content::item::get_live_revision -item_id $file_id] } -if { ![exists_and_not_null file_id] && [info exists version_id] } { +if { (![info exists file_id] || $file_id eq "") && [info exists version_id] } { set file_id [content::revision::item_id -revision_id $version_id] }