summaryrefslogtreecommitdiff
path: root/libpiny/lib/Piny/Config.pm
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2011-04-20 21:11:42 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2011-04-20 21:11:42 -0700
commitda6e245112270694be287e0aa019fc44d3486f7f (patch)
tree33decdb7218dc203e2b5444dd2f6723c24a4d3b8 /libpiny/lib/Piny/Config.pm
parent4ceaa9877f62c23e2d2e95c621fc51d1a656d7c5 (diff)
downloadpiny-code-da6e245112270694be287e0aa019fc44d3486f7f.tar.gz
piny-code-da6e245112270694be287e0aa019fc44d3486f7f.zip
Better handling for empty config entries.
Diffstat (limited to 'libpiny/lib/Piny/Config.pm')
-rw-r--r--libpiny/lib/Piny/Config.pm4
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;
};