diff --git a/webhttpd.c b/webhttpd.c
index 41b02940..0f0fddc3 100644
--- a/webhttpd.c
+++ b/webhttpd.c
@@ -527,7 +527,7 @@ static int config(char *pointer, char *res, int length_uri, int thread, int clie
if (!strcmp ("bool",config_type(&config_params[i])) ){
char option[80] = {'\0'};
- if (!strcmp ("on", value))
+ if (value != NULL)
sprintf(option,"\n"
"\n");
else