From 8b832f475fbd00fc2ea36b70658073841ea904ee Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 7 Jul 2012 12:49:40 +0200 Subject: [PATCH] Fix: getpost error --- htdocs/main.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index c2564cb2f17..d6a252f0ba1 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -358,7 +358,7 @@ if (! defined('NOLOGIN')) // Appel des triggers include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php"); $interface=new Interfaces($db); - $result=$interface->run_triggers('USER_LOGIN_FAILED',$user,$user,$langs,$conf,GETPOST('entity','int',2)); + $result=$interface->run_triggers('USER_LOGIN_FAILED',$user,$user,$langs,$conf,GETPOST('entity','int')); if ($result < 0) { $error++; } @@ -742,7 +742,7 @@ $heightforframes=48; // Switch to another entity if (! empty($conf->multicompany->enabled) && GETPOST('action') == 'switchentity') { - if ($mc->switchEntity(GETPOST('entity','int',2)) > 0) + if ($mc->switchEntity(GETPOST('entity','int')) > 0) { Header("Location: ".DOL_URL_ROOT.'/'); exit;