[Rt-commit] r7667 - rt/branches/3.7-EXPERIMENTAL/lib/RT
clkao at bestpractical.com
clkao at bestpractical.com
Tue Apr 24 07:18:29 EDT 2007
Author: clkao
Date: Tue Apr 24 07:18:25 2007
New Revision: 7667
Modified:
rt/branches/3.7-EXPERIMENTAL/lib/RT/Config.pm
Log:
Don't break when array/hash values are empty for RT::Config options.
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Config.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Config.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Config.pm Tue Apr 24 07:18:25 2007
@@ -364,9 +364,9 @@
return $res unless wantarray;
if( $type eq 'ARRAY' ) {
- return @{ $res };
+ return @{ $res || [] };
} elsif( $type eq 'HASH' ) {
- return %{ $res };
+ return %{ $res || {} };
}
return $res;
}
More information about the Rt-commit
mailing list