summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Process
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-06-24 09:43:23 +0000
committerfukachan <fukachan>2002-06-24 09:43:23 +0000
commit4927c490fe46bf2a6cc8de27a29c8e0efd67ecee (patch)
treef68e78058bdb624848d7c2ef50e52faa5efd36fa /fml/lib/FML/Process
parent0c187034bc7f7f139e4d125e52a3f82de9c2e9d6 (diff)
downloadfml8-4927c490fe46bf2a6cc8de27a29c8e0efd67ecee.tar.gz
fml8-4927c490fe46bf2a6cc8de27a29c8e0efd67ecee.tar.bz2
fml8-4927c490fe46bf2a6cc8de27a29c8e0efd67ecee.zip
more defined() checks and sanity check if could
Diffstat (limited to 'fml/lib/FML/Process')
-rw-r--r--fml/lib/FML/Process/CGI/Kernel.pm10
-rw-r--r--fml/lib/FML/Process/Kernel.pm9
2 files changed, 13 insertions, 6 deletions
diff --git a/fml/lib/FML/Process/CGI/Kernel.pm b/fml/lib/FML/Process/CGI/Kernel.pm
index 854963f1..082c9094 100644
--- a/fml/lib/FML/Process/CGI/Kernel.pm
+++ b/fml/lib/FML/Process/CGI/Kernel.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Kernel.pm,v 1.30 2002/06/22 11:49:26 fukachan Exp $
+# $FML: Kernel.pm,v 1.31 2002/06/22 14:39:56 fukachan Exp $
#
package FML::Process::CGI::Kernel;
@@ -98,9 +98,11 @@ sub new
# reset $ml_domain to handle virtual domains
my $config = $curproc->{ config };
- $config->set('ml_domain', $ml_domain);
- $config->set('ml_home_prefix', $ml_home_prefix);
- $config->set('ml_home_dir', $ml_home_dir);
+ $config->set('ml_domain', $ml_domain);
+ $config->set('ml_home_prefix', $ml_home_prefix);
+ if (defined $ml_home_dir && $ml_home_dir) {
+ $config->set('ml_home_dir', $ml_home_dir);
+ }
# redefine $curproc as the object $type.
return bless $curproc, $type;
diff --git a/fml/lib/FML/Process/Kernel.pm b/fml/lib/FML/Process/Kernel.pm
index c3d1a705..21c7d540 100644
--- a/fml/lib/FML/Process/Kernel.pm
+++ b/fml/lib/FML/Process/Kernel.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Kernel.pm,v 1.105 2002/06/01 05:09:26 fukachan Exp $
+# $FML: Kernel.pm,v 1.106 2002/06/01 14:53:40 fukachan Exp $
#
package FML::Process::Kernel;
@@ -744,7 +744,12 @@ sub _gen_recipient_key
{
my ($rarray) = @_;
- return join(" ", @$rarray);
+ if (defined $rarray) {
+ return join(" ", @$rarray);
+ }
+ else {
+ return '';
+ }
}