diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index 6c2148a4b1e..e69628e64e0 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -262,9 +262,11 @@ class Conf extends stdClass $this->user = new stdClass(); $this->adherent = new stdClass(); $this->bank = new stdClass(); + $this->mailing = new stdClass(); $this->notification = new stdClass(); $this->expensereport = new stdClass(); $this->productbatch = new stdClass(); + $this->api = new stdClass(); } diff --git a/htdocs/core/class/utils.class.php b/htdocs/core/class/utils.class.php index 0bf02a2d6fa..e4e00ef3c47 100644 --- a/htdocs/core/class/utils.class.php +++ b/htdocs/core/class/utils.class.php @@ -172,6 +172,7 @@ class Utils $tmpcountdeleted = 0; $result = dol_delete_dir_recursive($filesarray[$key]['fullname'], $startcount, 1, 0, $tmpcountdeleted); + $excluded = [ $conf->user->dir_temp, ];