Skip to content

Commit

Permalink
Fix var not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 14, 2017
1 parent ccd20d9 commit 1ad7210
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/modulebuilder/template/scripts/myobject.php
Expand Up @@ -43,6 +43,7 @@
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");
Expand Down

0 comments on commit 1ad7210

Please sign in to comment.