FIX : if(!method_exists(dol_loginfunction))

This commit is contained in:
gauthier 2019-01-17 14:49:04 +01:00
parent 05dc40b6b9
commit d997309bcb

View File

@ -126,8 +126,9 @@ function checkLoginPassEntity($usertotest,$passwordtotest,$entitytotest,$authmod
* @param Societe $mysoc Company object
* @return void
*/
function dol_loginfunction($langs,$conf,$mysoc)
{
if (! function_exists('dol_loginfunction')) {
function dol_loginfunction($langs,$conf,$mysoc)
{
global $dolibarr_main_demo,$db;
global $smartphone,$hookmanager;
@ -299,6 +300,7 @@ function dol_loginfunction($langs,$conf,$mysoc)
$_SESSION["dol_loginmesg"] = '';
}
}
/**