Avoid warnings on undef hook_config returns values

This commit is contained in:
Jared Johnson 2014-09-15 11:03:52 -05:00
parent f052543154
commit 2caa191334

View File

@ -152,7 +152,8 @@ sub config {
return wantarray ? @config : $config[0]
if defined $rc and $rc == OK;
($rc, @config) = $self->run_hooks_no_respond('config',$c);
$self->log(LOGDEBUG, "config($c): hook returned ($rc, @config) ");
$self->log(LOGDEBUG, "config($c): hook returned ("
. join( ',', map { defined $_ ? $_ : 'undef' } ($rc,@config) ) . ")");
return wantarray ? @config : $config[0]
if defined $rc and $rc == OK;