From da6e245112270694be287e0aa019fc44d3486f7f Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Wed, 20 Apr 2011 21:11:42 -0700 Subject: Better handling for empty config entries. --- libpiny/lib/Piny/Config.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpiny') diff --git a/libpiny/lib/Piny/Config.pm b/libpiny/lib/Piny/Config.pm index 718af5c..7ba1fd5 100644 --- a/libpiny/lib/Piny/Config.pm +++ b/libpiny/lib/Piny/Config.pm @@ -107,6 +107,10 @@ sub _build__conf { }; + foreach my $key ( keys %$conf ) { + $conf->{$key} = "" unless defined $conf->{$key}; + }; + return $conf; }; -- cgit v1.2.3