diff --git a/htdocs/core/modules/modCron.class.php b/htdocs/core/modules/modCron.class.php index 131ee875c44..c7c221d0856 100644 --- a/htdocs/core/modules/modCron.class.php +++ b/htdocs/core/modules/modCron.class.php @@ -149,7 +149,9 @@ class modCron extends DolibarrModules */ function init($options='') { - // Prevent pb of modules not correctly disabled + $sql = array(); + + // Prevent pb of modules not correctly disabled //$this->remove($options); return $this->_init($sql,$options);