mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
CChannelList: No error message when no channels found and...
...frontend is only simulated
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7fd5553426
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-14 (Thu, 14 Jan 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1155,7 +1155,9 @@ bool CChannelList::zapTo_ChannelID(const t_channel_id channel_id, bool force)
|
|||||||
bool CChannelList::showEmptyError()
|
bool CChannelList::showEmptyError()
|
||||||
{
|
{
|
||||||
if ((*chanlist).empty()) {
|
if ((*chanlist).empty()) {
|
||||||
DisplayErrorMessage(g_Locale->getText(LOCALE_CHANNELLIST_NONEFOUND)); // UTF-8
|
/* No error message when the frontend is only simulated */
|
||||||
|
if (!getenv("SIMULATE_FE"))
|
||||||
|
DisplayErrorMessage(g_Locale->getText(LOCALE_CHANNELLIST_NONEFOUND)); // UTF-8
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user