Fixed bug so disabling ntp option works

This commit is contained in:
Joerg Werner 2014-04-14 11:35:33 +02:00
parent 03a69ffec6
commit 0f759290d4

View file

@ -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));