From: ivan Date: Mon, 29 Mar 2004 06:03:21 +0000 (+0000) Subject: fix export_info sub to return an empty hashref instead of undef X-Git-Tag: NET_WHOIS_RAW_0_31~23 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=0a49e67bc01107bc9c57bc16dd8f906184cf349b 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 061f07d28..bd12389c2 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 }; }