From 9c47f00a818a374ca0e8b0da101ab306bfb4d408 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Sat, 9 Aug 2025 14:29:47 +0200 Subject: [PATCH] Fix warnings --- htdocs/main.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 64edbd3a6f5..ed5fe87f13d 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -142,6 +142,15 @@ if (!defined('NOSESSION')) { // Init the 6 global objects, this include will make the 'new Xxx()' and set properties for: $conf, $db, $langs, $user, $mysoc, $hookmanager require_once 'master.inc.php'; +/** + * The master.inc.php has been included so the following variable are now defined: + * @var Conf $conf + * @var DoliDB $db + * @var HookManager $hookmanager + * @var Translate $langs + * @var User $user + * @var Societe $mysoc + */ // Uncomment this and set session.save_handler = user to use local session storing // include DOL_DOCUMENT_ROOT.'/core/lib/phpsessionindb.inc.php