From f149c1044faac06334357129d5d6dd8bf08608de Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 6 Aug 2010 16:14:42 +0000 Subject: [PATCH] Fix: sql error --- htdocs/categories/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php index e0952249a44..88b21168e10 100644 --- a/htdocs/categories/index.php +++ b/htdocs/categories/index.php @@ -31,7 +31,7 @@ require("../main.inc.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']:isset($_POST['type'])?$_POST['type']:0; +$type=isset($_GET['type'])?$_GET['type']:(isset($_POST['type'])?$_POST['type']:0); if (!$user->rights->categorie->lire) accessforbidden();