diff --git a/epg2xml-web.php b/epg2xml-web.php
index 45d477f..dce3f38 100644
--- a/epg2xml-web.php
+++ b/epg2xml-web.php
@@ -281,6 +281,8 @@ function getEPG() {
     $MyISP = $GLOBALS['MyISP'];
     $Channelfile = __DIR__."/Channel.json";
     $IconUrl = "";
+    $ChannelInfos = array();
+
     try {
         $f = @file_get_contents($Channelfile);
         if($f === False) :
diff --git a/epg2xml.php b/epg2xml.php
index a145719..eb9ff6a 100644
--- a/epg2xml.php
+++ b/epg2xml.php
@@ -302,6 +302,8 @@ function getEPG() {
     $MyISP = $GLOBALS['MyISP'];
     $Channelfile = __DIR__."/Channel.json";
     $IconUrl = "";
+    $ChannelInfos = array();
+
     try {
         $f = @file_get_contents($Channelfile);
         if($f === False) :