aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel
diff options
context:
space:
mode:
Diffstat (limited to 'config/haproxy-devel')
-rw-r--r--config/haproxy-devel/haproxy_pool_edit.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/haproxy-devel/haproxy_pool_edit.php b/config/haproxy-devel/haproxy_pool_edit.php
index 5724e6e3..b8cb5db6 100644
--- a/config/haproxy-devel/haproxy_pool_edit.php
+++ b/config/haproxy-devel/haproxy_pool_edit.php
@@ -136,11 +136,10 @@ if ($_POST) {
if (!preg_match("/.{2,}/", $server_address))
$input_errors[] = "The field 'Address' is required.";
- if (!preg_match("/.{2,}/", $server_weight))
- $input_errors[] = "The field 'Weight' is required.";
if (!is_numeric($server_weight))
$input_errors[] = "The field 'Weight' value is not a number.";
+
if ($server_port && !is_numeric($server_port))
$input_errors[] = "The field 'Port' value is not a number.";
}