avoid process csv while updating task with no csv changes

This commit is contained in:
fbsanchez 2020-04-08 12:29:44 +02:00
parent 4cf121b45a
commit 748582509a
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ class HostDevices extends Wizard
$interval = get_parameter('interval', 0);
if ($network_csv_enabled) {
if (isset($_FILES['network_csv']['type'])) {
if (empty($_FILES['network_csv']['type']) === false) {
if ($_FILES['network_csv']['type'] != 'text/csv'
&& $_FILES['network_csv']['type'] != 'text/plain'
&& $_FILES['network_csv']['type'] != 'application/octet-stream'