From 89e61f669b99e59e76c380d68a73e4828625a20f Mon Sep 17 00:00:00 2001 From: HummyPkg Date: Mon, 12 Mar 2018 23:50:17 +0000 Subject: [PATCH] Check for key in genrelist --- CONTROL/control | 2 +- webif/lib/epg.class | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CONTROL/control b/CONTROL/control index 57a24fba..8fd3e498 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 1.4.2-15 +Version: 1.4.2-16 Architecture: mipsel Maintainer: af123@hpkg.tv Depends: tcpfix,webif-channelicons(>=1.1.26),lighttpd(>=1.4.39-1),jim(>=0.77),jim-oo(>=0.77),jim-sqlite3(>=0.77),jim-cgi(>=0.7-1),jim-binary(>=0.76),service-control(>=2.3),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.8),hmt(>=2.0.10),ssmtp,cron-daemon(>=1.18.3-3),at(>=3.1.18),anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.1.11),webif-charts(>=1.2-1),stripts(>=1.3.1),tmenu(>=1.21-2),ffmpeg(>=2.8),id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>=2.0.7),hwctl,nugget(>=0.95),sqlite3(>=3.15.1),jim-xconv diff --git a/webif/lib/epg.class b/webif/lib/epg.class index b742e600..ab8a4677 100644 --- a/webif/lib/epg.class +++ b/webif/lib/epg.class @@ -116,7 +116,10 @@ epg method end {} { } epg method type_icon {} { - lassign $::epg::genrelist($content_code) x img + set img "" + if {[dict exists $::epg::genrelist $content_code]} { + lassign $::epg::genrelist($content_code) x img + } if {$img != "" && $img ne "Unclassified"} { return "/images/173_3_00_G3_$img.png" } else {