From: ivan Date: Mon, 29 Mar 2004 06:03:23 +0000 (+0000) Subject: fix export_info sub to return an empty hashref instead of undef X-Git-Tag: freeside_1_4_2beta1~169 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=bccaf86a5765a6f174bd890c92859c639d83ce9b;p=freeside.git fix export_info sub to return an empty hashref instead of undef --- diff --git a/FS/FS/part_export.pm b/FS/FS/part_export.pm index 5941935ba..f722dd917 100644 --- a/FS/FS/part_export.pm +++ b/FS/FS/part_export.pm @@ -513,7 +513,7 @@ on the export: sub export_info { #warn $_[0]; - return $exports{$_[0]} if @_; + return $exports{$_[0]} || {} if @_; #{ map { %{$exports{$_}} } keys %exports }; my $r = { map { %{$exports{$_}} } keys %exports }; }