From 1ad7210506dfbef32bc6ae637eb3eaf1258ec0e7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 14 Jul 2017 03:14:21 +0200 Subject: [PATCH] Fix var not initialized --- htdocs/modulebuilder/template/scripts/myobject.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/modulebuilder/template/scripts/myobject.php b/htdocs/modulebuilder/template/scripts/myobject.php index 1b22500f2c6..a8c280193ea 100644 --- a/htdocs/modulebuilder/template/scripts/myobject.php +++ b/htdocs/modulebuilder/template/scripts/myobject.php @@ -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");