From 5b4c3c356b93347d3fac1f07d31fa4e44db3757c Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 04 Nov 2017 13:09:39 -0400 Subject: mq_html_input_number_i(): Allow label to be disabled --- (limited to 'src/utils') diff --git a/src/utils/html.c b/src/utils/html.c index 68af9a6..3b5be2c 100644 --- a/src/utils/html.c +++ b/src/utils/html.c @@ -643,11 +643,21 @@ gchar * mq_html_input_number_i(const gchar *name, const gchar *label, gint min, gint step, gint max, gint value) { - return g_strdup_printf("\n", - name, label, name, name, min, step, max, value); + if (label && label[0]) { + return g_strdup_printf( + "\n", + name, label, name, name, min, step, max, value); + } else { + return g_strdup_printf( + "\n", + name, name, min, step, max, value); + } } gchar * -- cgit v0.9.1