Reverted a problem which caused the address book content handler to fail

This commit is contained in:
Martin Kamerbeek 2008-05-02 14:07:29 +00:00
parent 0100ab0112
commit edac2bfd81

View file

@ -82,8 +82,9 @@ sub www_address {
my $output = undef;
my $method = "www_". ( $session->form->get("method") || "view");
my $cart = WebGUI::Shop::AddressBook->newBySession($session);
if (my $sub = $cart->can($method)) {
$output = $sub->();
if ($cart->can($method)) {
$output = $cart->$method();
}
return $output;
}