X-Git-Url: http://git.rot13.org/?p=webpac2;a=blobdiff_plain;f=vhost%2Fwebpac2.cgi;h=96cfb859485d37531b830d831a22aa3e3bc55033;hp=19dae1a085e70036da95d250bd0f17e6f3b448ed;hb=6c079657d84ad6b348fc1b268cc9c09b7071abd3;hpb=23109b6227b31fe7880f7a2c836a68b0d3868368 diff --git a/vhost/webpac2.cgi b/vhost/webpac2.cgi index 19dae1a..96cfb85 100755 --- a/vhost/webpac2.cgi +++ b/vhost/webpac2.cgi @@ -136,6 +136,7 @@ my $inputs_available = 0; foreach ( @{ $db->{input} } ) { my $input = $_->{name} || die "no name in ",dump( $_ ); + next unless defined $stats->{input}->{$input}; # skip inputs without data if ( ! $only_input->{'-labels'}->{$input} ) { push @{ $only_input->{'-values'} }, $input; $only_input->{'-labels'}->{$input} = $_->{description} || $input;