From f96988a40cc0e285830faacc6b35164154f5e91c Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Mon, 28 Oct 2013 08:35:32 +1300 Subject: [PATCH] Only use ISODate if it is defined. --- bin/mythtv-status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}; -- 2.30.2