From: Darold Gilles Date: Tue, 15 Apr 2014 12:00:39 +0000 (+0200) Subject: Remove Examples button when there is no examples available. X-Git-Tag: v5.1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25e46ac00a7aa228155124878ec72a32fa5ca15b;p=pgbadger Remove Examples button when there is no examples available. --- diff --git a/pgbadger b/pgbadger index f842fbe..9b56016 100644 --- a/pgbadger +++ b/pgbadger @@ -6231,7 +6231,7 @@ sub print_tempfile_report my $avg_size = &pretty_print_size($top_temporary[$i]->[2] / ($top_temporary[$i]->[1] || 1)); my $query = &highlight_code($top_temporary[$i]->[0]); my $example = qq{

}; - $example = '' if ($count <= 1); + $example = '' if (scalar keys %{$normalyzed_info{$top_temporary[$i]->[0]}{samples}} == 0); print $fh qq{ $rank