$input_taskjob["action"] = '';
         }
         $a_definition = array();
         $a_definition[]['PluginFusioninventoryIPRange'] = $_POST['iprange'];
         $input_taskjob['definition'] = exportArrayToDB($a_definition);
         $input_task["communication"] = $_POST['communication'];
         $task->update($input_task);
         $taskjob->update($input_taskjob);
     } else {
         Session::checkRight('plugin_fusioninventory_iprange', UPDATE);
         if ($iprange->checkip($_POST)) {
             $_POST['ip_start'] = (int) $_POST['ip_start0'] . "." . (int) $_POST['ip_start1'] . ".";
             $_POST['ip_start'] .= (int) $_POST['ip_start2'] . "." . (int) $_POST['ip_start3'];
             $_POST['ip_end'] = (int) $_POST['ip_end0'] . "." . (int) $_POST['ip_end1'] . ".";
             $_POST['ip_end'] .= (int) $_POST['ip_end2'] . "." . (int) $_POST['ip_end3'];
             $iprange->update($_POST);
         }
     }
     Html::back();
 } else {
     if (isset($_POST["delete"])) {
         if (isset($_POST['communication'])) {
             $task = new PluginFusioninventoryTask();
             $task->delete(array('id' => $_POST['task_id']), 1);
             $_SERVER['HTTP_REFERER'] = str_replace("&allowcreate=1", "", $_SERVER['HTTP_REFERER']);
             Html::back();
         } else {
             Session::checkRight('plugin_fusioninventory_"iprange', PURGE);
             $iprange->delete($_POST);
             Html::redirect(Toolbox::getItemTypeSearchURL('PluginFusioninventoryIPRange'));
         }