From: Joerg Werner Date: Mon, 14 Apr 2014 09:35:33 +0000 (+0200) Subject: Fixed bug so disabling ntp option works X-Git-Tag: v4.1~2078^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F387%2Fhead;p=thirdparty%2Ftvheadend.git Fixed bug so disabling ntp option works --- diff --git a/src/webui/extjs.c b/src/webui/extjs.c index ed7e5b2eb..378f2e179 100755 --- a/src/webui/extjs.c +++ b/src/webui/extjs.c @@ -1571,10 +1571,10 @@ extjs_config(http_connection_t *hc, const char *remain, void *opaque) config_save(); /* Time */ - if ((str = http_arg_get(&hc->hc_req_args, "tvhtime_update_enabled"))) - tvhtime_set_update_enabled(!!str); - if ((str = http_arg_get(&hc->hc_req_args, "tvhtime_ntp_enabled"))) - tvhtime_set_ntp_enabled(!!str); + str = http_arg_get(&hc->hc_req_args, "tvhtime_update_enabled"); + tvhtime_set_update_enabled(!!str); + str = http_arg_get(&hc->hc_req_args, "tvhtime_ntp_enabled"); + tvhtime_set_ntp_enabled(!!str); if ((str = http_arg_get(&hc->hc_req_args, "tvhtime_tolerance"))) tvhtime_set_tolerance(atoi(str));