From 345419d01f94880fac58669a0eb6a4ab0dfaafd9 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 12 Oct 2013 21:39:41 +0200 Subject: [PATCH] CControlAPI::EpgCGI fix control/epg Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/03b71515639f3cf15efccf618e7096f39e2be30a Author: Jacek Jendrzej Date: 2013-10-12 (Sat, 12 Oct 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/nhttpd/tuxboxapi/coolstream/controlapi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp index 04c9b9474..6e5a1f939 100644 --- a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp @@ -1272,13 +1272,14 @@ void CControlAPI::epgDetailList(CyhookHandler *hh) { //------------------------------------------------------------------------- void CControlAPI::EpgCGI(CyhookHandler *hh) { NeutrinoAPI->eList.clear(); + bool param_empty = hh->ParamList.empty(); hh->SetHeader(HTTP_OK, "text/plain; charset=UTF-8"); // default // Detailed EPG list in XML or JSON if (!hh->ParamList["xml"].empty() || !hh->ParamList["json"].empty() || !hh->ParamList["detaillist"].empty()) { epgDetailList(hh); } // Standard list normal or extended - else if (hh->ParamList.empty() || hh->ParamList["1"] == "ext") { + else if (param_empty || hh->ParamList["1"] == "ext") { hh->SetHeader(HTTP_OK, "text/plain; charset=UTF-8"); bool isExt = (hh->ParamList["1"] == "ext"); CChannelEvent *event = NULL;