Corrected mistake in the general config sending routine in extjs.c

This commit is contained in:
Adam Sutton 2012-08-15 11:55:25 +01:00
parent 741612ccf9
commit d530f9e8a1

View file

@ -1726,10 +1726,10 @@ extjs_config(http_connection_t *hc, const char *remain, void *opaque)
/* Basic settings (not the advanced schedule) */
if(!strcmp(op, "loadSettings")) {
pthread_mutex_lock(&global_lock);
out = htsmsg_create_map();
if ((m = config_get_all()))
htsmsg_add_msg(out, "config", m);
m = config_get_all();
pthread_mutex_unlock(&global_lock);
if (!m) return HTTP_STATUS_BAD_REQUEST;
out = json_single_record(m, "config");
/* Save settings */
} else if (!strcmp(op, "saveSettings") ) {