]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Make sure we don't print the schedule conflicts block if there aren't any conflicts.
authorAndrew Ruthven <andrew@etc.gen.nz>
Mon, 19 Nov 2007 08:47:01 +0000 (21:47 +1300)
committerAndrew Ruthven <andrew@cyclops.etc.gen.nz>
Mon, 19 Nov 2007 08:47:01 +0000 (21:47 +1300)
bin/mythtv-status

index f77a66b666204f7a9fe9b9158720ca97d0fecf23..44501fffa4a41805e4ea36df07a9c76078181682 100755 (executable)
@@ -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";
   }