Avoid warnings on undef hook_config returns values
This commit is contained in:
parent
f052543154
commit
2caa191334
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user