From 7def152af693bbae6e364087a600b796ca05ac0a Mon Sep 17 00:00:00 2001 From: fukachan Date: Tue, 5 Mar 2002 13:25:25 +0000 Subject: check $hook is defined or not. --- fml/lib/FML/Config.pm | 4 ++-- 1 file 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"); -- cgit v1.2.1