]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Only use ISODate if it is defined.
authorAndrew Ruthven <andrew@etc.gen.nz>
Sun, 27 Oct 2013 19:35:32 +0000 (08:35 +1300)
committerAndrew Ruthven <andrew@etc.gen.nz>
Sun, 27 Oct 2013 19:35:32 +0000 (08:35 +1300)
bin/mythtv-status

index 151b0f308750f7e870511f50fcff3b1b23cb6773..917a6b1054b4bb5f56d257b5c9743900737a4041 100755 (executable)
@@ -214,7 +214,7 @@ my @blocks = (
       '&date' => sub {
         my ($value, $vars) = @_;
 
-       if ($vars->{ISODate} =~ /Z$/) {
+       if (defined $vars->{ISODate} && $vars->{ISODate} =~ /Z$/) {
          return process_iso_date($vars->{ISODate});
        } else {
          return $vars->{date} . ", " . $vars->{time};