Skip to content

Commit

Permalink
Fix: getpost error
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Jul 7, 2012
1 parent fa8841c commit 714fe81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/main.inc.php
Expand Up @@ -358,7 +358,7 @@ function analyse_sql_and_script(&$var, $type)
// 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++;
}
Expand Down Expand Up @@ -752,7 +752,7 @@ function analyse_sql_and_script(&$var, $type)
// 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;
Expand Down

0 comments on commit 714fe81

Please sign in to comment.