From: Andrew Ruthven Date: Sun, 27 Oct 2013 19:35:32 +0000 (+1300) Subject: Only use ISODate if it is defined. X-Git-Tag: 0.10.4~4 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f96988a40cc0e285830faacc6b35164154f5e91c;p=mythtv-status.git Only use ISODate if it is defined. --- diff --git a/bin/mythtv-status b/bin/mythtv-status index 151b0f3..917a6b1 100755 --- a/bin/mythtv-status +++ b/bin/mythtv-status @@ -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};