|
|
@@ -26,7 +26,7 @@ if (!empty($_POST['ok'])) {
|
|
|
// Check empty fields
|
|
|
if (empty($_POST['v_action'])) $errors[] = __('action');
|
|
|
if (empty($_POST['v_protocol'])) $errors[] = __('protocol');
|
|
|
- if (empty($_POST['v_port'])) $errors[] = __('port');
|
|
|
+ if (!isset($_POST['v_port'])) $errors[] = __('port');
|
|
|
if (empty($_POST['v_ip'])) $errors[] = __('ip address');
|
|
|
if (!empty($errors[0])) {
|
|
|
foreach ($errors as $i => $error) {
|