From 6505e959321adf45e984ebdc2570563a9660deb7 Mon Sep 17 00:00:00 2001 From: Delthair <41671350+Delthair@users.noreply.github.com> Date: Thu, 14 Nov 2024 13:57:52 +0100 Subject: [PATCH] ISSUE #31816 Bug correction to finalise step 5 of installation --- htdocs/core/modules/DolibarrModules.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/core/modules/DolibarrModules.class.php b/htdocs/core/modules/DolibarrModules.class.php index cc9fd5f1ca52d..57c2eb780f00b 100644 --- a/htdocs/core/modules/DolibarrModules.class.php +++ b/htdocs/core/modules/DolibarrModules.class.php @@ -1609,6 +1609,10 @@ public function insert_cronjobs() global $conf, $user; + if (empty($user)) { + $user = new User($this->db); + } + $err = 0; if (is_array($this->cronjobs)) {