projects
/
webpac2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
23109b6
)
skip inputs without data
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 12 Jul 2009 18:18:57 +0000
(18:18 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 12 Jul 2009 18:18:57 +0000
(18:18 +0000)
git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@1242
07558da8
-63fa-0310-ba24-
9fe276d99e06
vhost/webpac2.cgi
patch
|
blob
|
history
diff --git
a/vhost/webpac2.cgi
b/vhost/webpac2.cgi
index
19dae1a
..
96cfb85
100755
(executable)
--- 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;