Skip to content
Snippets Groups Projects
Commit 1ad72105 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix var not initialized

parent ccd20d97
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ $error=0;
define('EVEN_IF_ONLY_LOGIN_ALLOWED',1); // Set this define to 0 if you want to lock your script when dolibarr setup is "locked to admin user only".
// Include and load Dolibarr environment variables
$res=0;
if (! $res && file_exists($path."master.inc.php")) $res=@include($path."master.inc.php");
if (! $res && file_exists($path."../master.inc.php")) $res=@include($path."../master.inc.php");
if (! $res && file_exists($path."../../master.inc.php")) $res=@include($path."../../master.inc.php");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment