From edac2bfd81cd8901c6fb0aee4033f346a0035724 Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Fri, 2 May 2008 14:07:29 +0000 Subject: [PATCH] Reverted a problem which caused the address book content handler to fail --- lib/WebGUI/Content/Shop.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Content/Shop.pm b/lib/WebGUI/Content/Shop.pm index f616ec365..85e3c40e3 100644 --- a/lib/WebGUI/Content/Shop.pm +++ b/lib/WebGUI/Content/Shop.pm @@ -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; }