minor fix

This commit is contained in:
fbsanchez 2020-04-08 12:26:01 +02:00
parent 47857de79f
commit 95d7a5d267
1 changed files with 46 additions and 44 deletions

View File

@ -308,6 +308,7 @@ class HostDevices extends Wizard
$interval = get_parameter('interval', 0); $interval = get_parameter('interval', 0);
if ($network_csv_enabled) { if ($network_csv_enabled) {
if (isset($_FILES['network_csv']['type'])) {
if ($_FILES['network_csv']['type'] != 'text/csv' if ($_FILES['network_csv']['type'] != 'text/csv'
&& $_FILES['network_csv']['type'] != 'text/plain' && $_FILES['network_csv']['type'] != 'text/plain'
&& $_FILES['network_csv']['type'] != 'application/octet-stream' && $_FILES['network_csv']['type'] != 'application/octet-stream'
@ -354,6 +355,7 @@ class HostDevices extends Wizard
); );
$network = join(',', $network); $network = join(',', $network);
} }
}
if (isset($task_id) === true) { if (isset($task_id) === true) {
// We're updating this task. // We're updating this task.