supplemental to b1f6d3531a0eaf0fea8bdd939ee679a4e219fd65,fix logic

Origin commit data
------------------
Commit: 33f6a38a64
Author: TangoCash <eric@loxat.de>
Date: 2018-10-28 (Sun, 28 Oct 2018)
This commit is contained in:
TangoCash
2018-10-28 13:06:12 +01:00
committed by vanhofen
parent c9533d540f
commit 4421fae523

View File

@@ -1290,7 +1290,7 @@ void CBouquetManager::readEPGMapping()
{
const char *channelid = xmlGetAttribute(epgmap, "channel_id");
const char *epgid = xmlGetAttribute(epgmap, "new_epg_id");
const char *xmlepg = xmlGetData(epgmap);
const char *xmlepg = xmlGetData(epgmap); // returns empty string, not NULL if nothing found
t_channel_id epg_id = 0;
t_channel_id channel_id = 0;
if (epgid)
@@ -1300,7 +1300,7 @@ void CBouquetManager::readEPGMapping()
if(channel_id && epg_id){
EpgIDMapping[channel_id]=epg_id;
}
if(channel_id && xmlepg){
if(channel_id && ((xmlepg != NULL) && (xmlepg[0] == '\0'))){
EpgXMLMapping[channel_id]=xmlepg;
}
epgmap = xmlNextNode(epgmap);