From 2068065e70294c46cb5244723d9dc44d3a72b66c Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Wed, 13 May 2015 12:58:18 +0200 Subject: [PATCH] Fixed check_value helper to treat empty input as unset checkbox. --- includes/ui/ui_input.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index ed0e0595..aa57475c 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -347,7 +347,7 @@ function select_button_cell($name, $value, $title=false) function check_value($name) { - if (!isset($_POST[$name])) + if (!isset($_POST[$name]) || $_POST[$name]=='') return 0; return 1; } -- 2.30.2