fixed bug 714893

This commit is contained in:
JT Smith 2003-04-04 01:29:36 +00:00
parent 4398f36fdb
commit 423dea6609

View file

@ -173,7 +173,7 @@ sub new {
".$properties->{collateralFolderId}.", ".quote($properties->{collateralType}).",
".$properties->{userId}.", ".$properties->{dateUploaded}.", ".$properties->{thumbnailSize}.",
".quote($properties->{name}).", ".quote($properties->{username}).")");
} else {
} elsif ($collateralId > 0) {
$properties = WebGUI::SQL->quickHashRef("select * from collateral where collateralId=".$collateralId);
}
my $self = WebGUI::Attachment->new($properties->{filename},"images",$properties->{collateralId});