If no adapters are found, just print that.

This commit is contained in:
Andreas Öman 2008-05-04 06:09:38 +00:00
parent d7998b4943
commit e4b8aaa5d2

View file

@ -139,6 +139,12 @@ ajax_config_dvb_tab(http_connection_t *hc, http_reply_t *hr)
tcp_qprintf(tq, "<div style=\"overflow: auto; width: 100%\">");
if(TAILQ_FIRST(&dvb_adapters) == NULL) {
tcp_qprintf(tq, "<div style=\"text-align: center; font-weight: bold\">"
"No adapters found</div>");
}
TAILQ_FOREACH(tda, &dvb_adapters, tda_global_link) {
tcp_qprintf(tq, "<div id=\"summary_%s\" "