diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-04-20 21:11:42 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-04-20 21:11:42 -0700 |
commit | da6e245112270694be287e0aa019fc44d3486f7f (patch) | |
tree | 33decdb7218dc203e2b5444dd2f6723c24a4d3b8 /libpiny/lib/Piny | |
parent | 4ceaa9877f62c23e2d2e95c621fc51d1a656d7c5 (diff) | |
download | piny-code-da6e245112270694be287e0aa019fc44d3486f7f.tar.gz piny-code-da6e245112270694be287e0aa019fc44d3486f7f.zip |
Better handling for empty config entries.
Diffstat (limited to 'libpiny/lib/Piny')
-rw-r--r-- | libpiny/lib/Piny/Config.pm | 4 |
1 files changed, 4 insertions, 0 deletions
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; }; |