diff --git a/pages/edit_searchtimer.ecpp b/pages/edit_searchtimer.ecpp index 17310499..e55e8118 100644 --- a/pages/edit_searchtimer.ecpp +++ b/pages/edit_searchtimer.ecpp @@ -53,7 +53,6 @@ using namespace vdrlive; int keeprecs = 0; int pauseonrecs = 0; int blacklistmode = 0; - std::string blacklistids[]; int switchminbefore = 0; bool useextepginfo = false; std::string extepgvalues[]; @@ -98,6 +97,11 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); #define SELECTIF(x) reply.out() << ( (x) ? "selected=\"selected\"" : "" ); #define CHECKIF(x) reply.out() << ( (x) ? "checked=\"checked\"" : "" ); +#if TNTVERSION >= 30000 +const char *TNT_ARRAY = "[]"; +#else +const char *TNT_ARRAY = ""; +#endif SearchTimers searchtimers; bool testmode = !test.empty(); @@ -559,7 +563,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); % int i=0; for (ExtEPGInfos::iterator extinfo = extEPGInfos.begin(); extinfo != extEPGInfos.end(); ++extinfo, i++) {
<$ extinfo->Name() $>
- + % if (extinfo->Values().size() > 0) { /> + /> % } % } diff --git a/pages/searchepg.ecpp b/pages/searchepg.ecpp index ca13977d..7a696b31 100644 --- a/pages/searchepg.ecpp +++ b/pages/searchepg.ecpp @@ -40,7 +40,6 @@ using namespace vdrlive; bool wday_sat = false; bool wday_sun = false; int blacklistmode = 0; - std::string blacklistids[]; bool useextepginfo = false; std::string extepgvalues[]; std::string blacklistids_internal; @@ -62,6 +61,12 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); #define SELECTIF(x) reply.out() << ( (x) ? "selected=\"selected\"" : "" ); #define CHECKIF(x) reply.out() << ( (x) ? "checked=\"checked\"" : "" ); +#if TNTVERSION >= 30000 +const char *TNT_ARRAY = "[]"; +#else +const char *TNT_ARRAY = ""; +#endif + searchtimer = 0; tChannelID channelfrom = tChannelID::FromString(channelfrom_string.c_str()); @@ -324,7 +329,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); <$ extinfo->Name() $> - + % if (extinfo->Values().size() > 0) {