Skip to content
Snippets Groups Projects
Commit 825a10de authored by SCHNEIDER Remi's avatar SCHNEIDER Remi
Browse files

correction du déplacement dans la hiérarchie

parent 1621ad92
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@
include "Donnees.inc.php";
$res = null;
if(isset($Hierarchie[$aliment]['sous-categorie'])) {
$res = $Hierarchie[$aliment]['sous-categorie'];
$res = $Hierarchie[$aliment]['sous-categorie'];
}
return $res;
}
......@@ -45,16 +45,16 @@
return null; // A FAIRE
}
// DEBUT DES ACTIONS SUR LA PAGE :
if(!isset($_GET['element'])) {
// Si on ouvre la Hiérachie pour la première fois, on part de 'Aliment'
$aliment = 'Vin effervescent';
// Si on ouvre la Hiérachie pour la première fois, on part de 'Vin effervescent'
$aliment = 'Aliment';
} else {
// Sinon on récupère l'aliment en cours
$aliment = $_GET['element'];
$aliment = trim($aliment, '"');
}
echo '<script>alert('."'".$aliment."'".');</script>';
$sup_cat = get_super_categories($aliment);
$sous_cat = get_sous_categories($aliment);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment