From 9eb81facb37306cf8fd8f25ec53c9fa9dedd3087 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Wed, 19 Aug 2015 10:18:53 +0200 Subject: zabbix-agent-lts - code style cleanup Fix copy/paste error in input validation. --- config/zabbix-agent-lts/zabbix-agent-lts.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/zabbix-agent-lts') diff --git a/config/zabbix-agent-lts/zabbix-agent-lts.inc b/config/zabbix-agent-lts/zabbix-agent-lts.inc index 4cc113ab..7eb7c564 100644 --- a/config/zabbix-agent-lts/zabbix-agent-lts.inc +++ b/config/zabbix-agent-lts/zabbix-agent-lts.inc @@ -79,7 +79,7 @@ function validate_input_zabbix_agent_lts($post, &$input_errors) { if ($post['listenport'] != '') { if (!is_numericint($post['listenport'])) { $input_errors[] = "'Listen Port' value is not numeric."; - } elseif ($post['buffersize'] < 1 || $post['buffersize'] > 65535) { + } elseif ($post['listenport'] < 1 || $post['listenport'] > 65535) { $input_errors[] = "You must enter a valid value for 'Listen Port'."; } } -- cgit v1.2.3