Commit ae099f62 authored by Cédric Anne's avatar Cédric Anne Committed by Johan Cwiklinski

Remove dead code on ajax/*

parent 8f3da215
......@@ -47,8 +47,6 @@ if (isset($_GET['node'])) {
// Root node
if ($_GET['node'] == -1) {
$pos = 0;
foreach ($_SESSION['glpiactiveprofile']['entities'] as $entity) {
$ID = $entity['id'];
$is_recursive = $entity['is_recursive'];
......
......@@ -40,7 +40,6 @@ if (strpos($_SERVER['PHP_SELF'], "ruleactionvalue.php")) {
}
Session::checkLoginUser();
$display = false;
$ra = new RuleAction();
......
......@@ -42,7 +42,7 @@ if (isset($_POST["name"])) {
//Add a new saved search
header("Content-Type: application/json; charset=UTF-8");
$savedsearch->check(-1, CREATE, $_POST);
if ($newID = $savedsearch->add($_POST)) {
if ($savedsearch->add($_POST)) {
Session::addMessageAfterRedirect(
__('Search has been saved'),
false,
......
......@@ -75,7 +75,7 @@ if (isset($_POST["itemtype"])
echo "    ";
if (is_array($linked) && (count($linked) > 0)) {
echo "<img class='pointer' src=\"".$CFG_GLPI["root_doc"]."/pics/meta_plus.png\"
echo "<img class='pointer' src=\"".$CFG_GLPI["root_doc"]."/pics/meta_plus.png\"
alt='+' title=\"". __s('Add a global search criterion').
"\" id='addmetasearchcriteria$randrow'>";
......@@ -130,7 +130,6 @@ if (isset($_POST["itemtype"])
['value' => $value]);
}
$selected = $first = '';
$values = [];
// display select box to define search item
if ($CFG_GLPI['allow_search_view'] == 2) {
......
......@@ -42,13 +42,11 @@ $entity = new Entity();
if (isset($_POST['inquest_config']) && isset($_POST['entities_id'])) {
if ($entity->getFromDB($_POST['entities_id'])) {
$inquest_config = $entity->getfield('inquest_config');
$inquest_delay = $entity->getfield('inquest_delay');
$inquest_rate = $entity->getfield('inquest_rate');
$inquest_duration = $entity->getfield('inquest_duration');
$max_closedate = $entity->getfield('max_closedate');
} else {
$inquest_config = $_POST['inquest_config'];
$inquest_delay = -1;
$inquest_rate = -1;
$inquest_duration = -1;
......
......@@ -84,7 +84,7 @@ if ((isset($_POST['field']) && ($_POST["value"] > 0))
}
}
$rand = Dropdown::showYesNo($_POST['field'].'[use_notification][]', $default_notif);
Dropdown::showYesNo($_POST['field'].'[use_notification][]', $default_notif);
$email_string = '';
// Only one email
......
......@@ -48,7 +48,6 @@ echo "<table width='100%'><tr><td width='40%'>";
foreach ($searchopt as $key => $val) {
// print groups
$str_limit = 28;
if (!is_array($val)) {
$group = $val;
} else if (is_array($val) && !isset($val['table'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment