]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Make sure we always tag a recording with a username
authorAndreas Öman <andreas@lonelycoder.com>
Mon, 16 Jun 2008 20:52:37 +0000 (20:52 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Mon, 16 Jun 2008 20:52:37 +0000 (20:52 +0000)
webui/webui.c

index 6523aaad890a4b23de7c0b7ad7513e0703e0dca6..0021307373a958785dbcdffc9759250dc90fa13a 100644 (file)
@@ -276,7 +276,7 @@ page_einfo(http_connection_t *hc, http_reply_t *hr,
   pvrr = pvr_get_by_entry(e);
 
   if((http_arg_get(&hc->hc_req_args, "rec")) != NULL) {
-    pvrr = pvr_schedule_by_event(e, hc->hc_username);
+    pvrr = pvr_schedule_by_event(e, hc->hc_username ?: "anonymous");
   } else if(pvrr && (http_arg_get(&hc->hc_req_args, "clear")) != NULL) {
     pvr_clear(pvrr);
     pvrr = NULL;