From 591149dc2c317aed3a9828c1a2921a6f6af97b1a Mon Sep 17 00:00:00 2001 From: Daniel Tiefnig Date: Fri, 17 Jun 2011 17:42:36 +0000 Subject: [PATCH] workaround for empty peektime settings (think this is caused due to the missing WSDL spec for the function) --- lib/admin/Controller/billing.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/admin/Controller/billing.pm b/lib/admin/Controller/billing.pm index 942a224..60ed361 100644 --- a/lib/admin/Controller/billing.pm +++ b/lib/admin/Controller/billing.pm @@ -711,6 +711,7 @@ sub show_peaktimes : Local { { handle => $bilprof }, \$peaktimes ); + $peaktimes = {} unless $peaktimes; my @weekdays; for(0 .. 6) { $weekdays[$_] = { name => $WEEKDAYS[$_] };