diff --git a/resource_planning.php b/resource_planning.php
index 4ca5a9684c20188b322df4689fb5b89276902be4..509278db693792cb5bbf28a09993646954e310dc 100644
--- a/resource_planning.php
+++ b/resource_planning.php
@@ -37,6 +37,7 @@
 
 // Change this following line to use the correct relative path (../, ../../, etc)
 $res=0;
+if (! $res && file_exists("../main.inc.php")) $res=@include '../main.inc.php';
 if (! $res && file_exists("../../main.inc.php")) $res=@include '../../main.inc.php';					// to work if your module directory is into dolibarr root htdocs directory
 if (! $res && file_exists("../../../main.inc.php")) $res=@include '../../../main.inc.php';			// to work if your module directory is into a subdir of root htdocs directory