From 7a3fb85fefc03f1d38c3f4c7c4ed8313d654a659 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 24 Aug 2010 12:46:00 +0000 Subject: [PATCH] Add possibility to include login method in a module --- htdocs/main.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index c519e2c972e..36f3cf56eff 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -488,7 +488,7 @@ if (! defined('NOLOGIN')) // Call triggers include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php"); $interface=new Interfaces($db); - $result=$interface->run_triggers('USER_UPDATE_SESSION',$user,$user,$langs,$conf,(isset($_POST["entity"])?$_POST["entity"]:0)); + $result=$interface->run_triggers('USER_UPDATE_SESSION',$user,$user,$langs,$conf,$conf->entity); if ($result < 0) { $error++; } // End call triggers }