배열에 채널 정보가 없을 때 경고 문장 나오는 버그 수정

This commit is contained in:
wonipapa 2017-05-19 17:31:55 +09:00
parent c944e2d487
commit 1308381c0a
2 changed files with 4 additions and 0 deletions

View File

@ -281,6 +281,8 @@ function getEPG() {
$MyISP = $GLOBALS['MyISP']; $MyISP = $GLOBALS['MyISP'];
$Channelfile = __DIR__."/Channel.json"; $Channelfile = __DIR__."/Channel.json";
$IconUrl = ""; $IconUrl = "";
$ChannelInfos = array();
try { try {
$f = @file_get_contents($Channelfile); $f = @file_get_contents($Channelfile);
if($f === False) : if($f === False) :

View File

@ -302,6 +302,8 @@ function getEPG() {
$MyISP = $GLOBALS['MyISP']; $MyISP = $GLOBALS['MyISP'];
$Channelfile = __DIR__."/Channel.json"; $Channelfile = __DIR__."/Channel.json";
$IconUrl = ""; $IconUrl = "";
$ChannelInfos = array();
try { try {
$f = @file_get_contents($Channelfile); $f = @file_get_contents($Channelfile);
if($f === False) : if($f === False) :