diff --git a/src/zapit/src/getservices.cpp b/src/zapit/src/getservices.cpp index 387ffcdf4..9156d867b 100644 --- a/src/zapit/src/getservices.cpp +++ b/src/zapit/src/getservices.cpp @@ -980,12 +980,11 @@ bool CServiceManager::ReplaceProviderName(std::string &name, t_transport_stream_ else if(!strcasecmp(replace.name.c_str(), name.c_str())) newname = replace.name; } - - } - if(!newname.empty()) { - printf("ReplaceProviderName: old [%s] new [%s]\n", name.c_str(), newname.c_str()); - name = newname; - return true; + if(!newname.empty()) { + printf("ReplaceProviderName: old [%s] new [%s]\n", name.c_str(), newname.c_str()); + name = newname; + return true; + } } return false; }