From bdfae1979666e43f8d4b21dcc46f65163fcf5772 Mon Sep 17 00:00:00 2001 From: prpr Date: Thu, 21 Apr 2022 18:00:04 +0100 Subject: [PATCH] Add error check --- webif/html/browse/epgtitle.jim | 1 + 1 file changed, 1 insertion(+) diff --git a/webif/html/browse/epgtitle.jim b/webif/html/browse/epgtitle.jim index 7cdfbcd..fb99306 100755 --- a/webif/html/browse/epgtitle.jim +++ b/webif/html/browse/epgtitle.jim @@ -9,6 +9,7 @@ httpheader "application/json" set file [cgi_get file] if {$file == 0} exit set ts [ts fetch $file] +if {$ts == 0} exit puts "{" puts "\"title\" : \"[jescape [$ts get title]]\","