diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php
index a643d86220c..88b21168e10 100644
--- a/htdocs/categories/index.php
+++ b/htdocs/categories/index.php
@@ -28,10 +28,10 @@
*/
require("../main.inc.php");
-require_once(DOL_DOCUMENT_ROOT."/categories/categorie.class.php");
+require_once(DOL_DOCUMENT_ROOT."/categories/class/categorie.class.php");
require_once(DOL_DOCUMENT_ROOT."/lib/treeview.lib.php");
-$type=isset($_GET['type'])?$_GET['type']:$_POST['type'];
+$type=isset($_GET['type'])?$_GET['type']:(isset($_POST['type'])?$_POST['type']:0);
if (!$user->rights->categorie->lire) accessforbidden();
@@ -122,7 +122,10 @@ print '
';
// Charge tableau des categories
-$cate_arbo = $categstatic->get_full_arbo($_GET['type']);
+$cate_arbo = $categstatic->get_full_arbo($type);
+
+// Define fulltree array
+$fulltree=$cate_arbo;
@@ -133,8 +136,6 @@ print '