Index: programs/mythfrontend/networkcontrol.cpp
===================================================================
--- programs/mythfrontend/networkcontrol.cpp	(revision 22974)
+++ programs/mythfrontend/networkcontrol.cpp	(working copy)
@@ -1159,7 +1159,10 @@
     query.prepare(queryStr);
     query.bindValue(":START", QDateTime::currentDateTime());
     query.bindValue(":END", QDateTime::currentDateTime());
-    query.bindValue(":CHANID", chanID);
+    if (!chanID.isEmpty())
+    {
+        query.bindValue(":CHANID", chanID);
+    }
 
     if (query.exec())
     {
