From f71f33d2da672858b41436b106f2d6c63d60dbc3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 6 Aug 2010 16:14:39 +0000 Subject: [PATCH] Fix: sql error --- htdocs/categories/index.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 ''.$langs->trans("Categories").'