From c82104880c12e7e7cc36b65610ca7dbd22d8f377 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 18 Jul 2012 04:11:05 +0000 Subject: [PATCH] Fix a problem where an empty variable is not allowed there are a few rare cases where this is beneficial behaviour. --- app/vars/v_vars_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vars/v_vars_edit.php b/app/vars/v_vars_edit.php index 6465cea1d0..d8138aa1df 100644 --- a/app/vars/v_vars_edit.php +++ b/app/vars/v_vars_edit.php @@ -66,7 +66,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //check for all required data if (strlen($var_name) == 0) { $msg .= "Please provide: Name
\n"; } - if (strlen($var_value) == 0) { $msg .= "Please provide: Value
\n"; } + //if (strlen($var_value) == 0) { $msg .= "Please provide: Value
\n"; } //if (strlen($var_cat) == 0) { $msg .= "Please provide: Category
\n"; } if (strlen($var_enabled) == 0) { $msg .= "Please provide: Enabled
\n"; } if (strlen($var_order) == 0) { $msg .= "Please provide: Order
\n"; }