Index: openacs-4/packages/acs-content-repository/tcl/revision-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/tcl/revision-procs.tcl,v diff -u -r1.30.4.4 -r1.30.4.5 --- openacs-4/packages/acs-content-repository/tcl/revision-procs.tcl 7 Oct 2013 16:55:59 -0000 1.30.4.4 +++ openacs-4/packages/acs-content-repository/tcl/revision-procs.tcl 13 Oct 2013 14:25:22 -0000 1.30.4.5 @@ -45,9 +45,10 @@ error "Either revision_id or item_id must be specified" } - if { $storage_type ne "file" && \ - $storage_type ne "text" && \ - $storage_type ne "lob" } { + if { $storage_type ne "file" + && $storage_type ne "text" + && $storage_type ne "lob" + } { error "Storage type '$storage_type' is invalid." } @@ -225,7 +226,7 @@ switch $content_type { image { - if { [db_string image_subclass ""] eq "f" } { + if { [db_string image_subclass ""] == "f" } { error "Image file must be stored in an image object" } @@ -268,7 +269,7 @@ error "The file you uploaded was not an image (.gif, .jpg or .jpeg) file" } - if { [db_string content_revision_subclass ""] eq "f" } { + if { [db_string content_revision_subclass ""] == "f" } { error "Content must be stored in a content revision object" }