diff --git a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp index 6e5a1f939..d699533a6 100644 --- a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp @@ -966,6 +966,9 @@ void CControlAPI::GetBouquetCGI(CyhookHandler *hh) { BouquetNr = atoi(hh->ParamList["bouquet"].c_str()); if (BouquetNr > 0) BouquetNr--; + if((BouquetNr > 0) && (BouquetNr >= bsize)) + BouquetNr = bsize-1; + startBouquet = BouquetNr; bsize = BouquetNr+1; }