From: Andrew Ruthven Date: Mon, 19 Nov 2007 08:47:01 +0000 (+1300) Subject: Make sure we don't print the schedule conflicts block if there aren't any conflicts. X-Git-Tag: 0.5~20 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33c11e8c66a7d9423a4e13008270f1c25a394725;p=mythtv-status.git Make sure we don't print the schedule conflicts block if there aren't any conflicts. --- diff --git a/bin/mythtv-status b/bin/mythtv-status index f77a66b..44501ff 100755 --- a/bin/mythtv-status +++ b/bin/mythtv-status @@ -219,7 +219,7 @@ for my $block (@blocks) { $output = substitute_vars($block, { 'next_time' => $next_time }); } - if (defined $output) { + if (defined $output && $output ne '') { print "$block->{'name'}:" . ($block->{'format'} eq 'one line' ? ' ' : "\n"); print $output . "\n\n"; }