diff options
| author | fukachan <fukachan> | 2001-01-24 08:40:49 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-01-24 08:40:49 +0000 |
| commit | 47226448358694f0ed95db29696446abcc98b17e (patch) | |
| tree | f62a489dbd4212ee8c2abbb615042bbdf7ac2de3 | |
| parent | 4e683b057517677d6227f0ef0e77d18300d6b448 (diff) | |
| download | fml8-47226448358694f0ed95db29696446abcc98b17e.tar.gz fml8-47226448358694f0ed95db29696446abcc98b17e.tar.bz2 fml8-47226448358694f0ed95db29696446abcc98b17e.zip | |
check the key is defined or not
| -rw-r--r-- | fml/lib/FML/Config.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fml/lib/FML/Config.pm b/fml/lib/FML/Config.pm index 47beecb2..f8ac3bdf 100644 --- a/fml/lib/FML/Config.pm +++ b/fml/lib/FML/Config.pm @@ -169,7 +169,12 @@ sub _expand_variables sub yes { my ($self, $key) = @_; - $_fml_config{$key} eq 'yes' ? 1 : 0; + if (defined $_fml_config{$key}) { + $_fml_config{$key} eq 'yes' ? 1 : 0; + } + else { + 0; + } } |
