the real fix to the problem frank just checked in

This commit is contained in:
JT Smith 2008-11-15 18:51:14 +00:00
parent d6b69e789c
commit 58a2681dce
2 changed files with 2 additions and 2 deletions

View file

@ -197,7 +197,7 @@ sub getDefaultAddress {
return $address; return $address;
} }
} }
return undef; WebGUI::Error::ObjectNotFound->throw(error=>"No default address.");
} }
#------------------------------------------------------------------- #-------------------------------------------------------------------

View file

@ -813,7 +813,7 @@ sub www_view {
} }
# if there is no shipping address we can't check out # if there is no shipping address we can't check out
if (WebGUI::Error->caught || not defined $address) { if (WebGUI::Error->caught) {
$var{shippingPrice} = $var{tax} = $self->formatCurrency(0); $var{shippingPrice} = $var{tax} = $self->formatCurrency(0);
} }