summaryrefslogtreecommitdiff
path: root/fml
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-03-05 13:25:25 +0000
committerfukachan <fukachan>2002-03-05 13:25:25 +0000
commit7def152af693bbae6e364087a600b796ca05ac0a (patch)
tree3cdadc38389ea1e9edec0f413d166f635ec008c1 /fml
parentec25df477c3e12d07e976a9e728afc549c60c371 (diff)
downloadfml8-7def152af693bbae6e364087a600b796ca05ac0a.tar.gz
fml8-7def152af693bbae6e364087a600b796ca05ac0a.tar.bz2
fml8-7def152af693bbae6e364087a600b796ca05ac0a.zip
check $hook is defined or not.
Diffstat (limited to 'fml')
-rw-r--r--fml/lib/FML/Config.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/fml/lib/FML/Config.pm b/fml/lib/FML/Config.pm
index 4b830155..5e17c5b2 100644
--- a/fml/lib/FML/Config.pm
+++ b/fml/lib/FML/Config.pm
@@ -1,7 +1,7 @@
#-*- perl -*-
# Copyright (C) 2000,2001,2002 Ken'ichi Fukamachi
#
-# $FML: Config.pm,v 1.55 2002/02/17 13:31:29 fukachan Exp $
+# $FML: Config.pm,v 1.56 2002/02/24 08:27:01 fukachan Exp $
#
package FML::Config;
@@ -332,7 +332,7 @@ sub _read_file
$fh->close;
# save hook configuration in FML::Config name space (global).
- $_fml_user_hooks .= $hook;
+ $_fml_user_hooks .= $hook if defined $hook;
}
else {
$self->error_set("Error: cannot open $file");