default backend

This commit is contained in:
Serghey Rodin 2015-10-30 13:53:41 +02:00
commit 45fd7dc75b
4 changed files with 6 additions and 3 deletions

View file

@ -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) {