diff options
-rw-r--r-- | Changelog | 5 | ||||
-rwxr-xr-x | bin/icli | 12 |
2 files changed, 12 insertions, 5 deletions
@@ -1,3 +1,8 @@ +git HEAD + + * Do not throw warnings when encountering a host/service with an empty + contact group list + App::Icli 0.48 - Fri Jun 13 2014 * New dependencies: DateTime, DateTime::Format::Strptime, DateTime::TimeZone @@ -463,11 +463,13 @@ sub enhance_status { $s->{contacts} =~ s{^ *}{}o; $s->{contacts} = [ split( m{, *}, $s->{contacts} ) ]; } - for my $group ( split( m{, *}, $s->{contact_groups} ) ) { - push( - @{ $s->{contacts} }, - @{ $config->{contactgroups}{$group} } - ); + if ($s->{contact_groups}) { + for my $group ( split( m{, *}, $s->{contact_groups} ) ) { + push( + @{ $s->{contacts} }, + @{ $config->{contactgroups}{$group} } + ); + } } } } |