Merge branch '11.0' of git@github.com:Dolibarr/dolibarr.git into 11.0
This commit is contained in:
commit
ddf3f8b244
@ -470,15 +470,15 @@ class DataPolicyCron
|
||||
{
|
||||
$sql = sprintf($params['sql'], (int) $conf->entity, (int) $conf->global->$key, (int) $conf->global->$key);
|
||||
|
||||
$resql = $db->query($sql);
|
||||
$resql = $this->db->query($sql);
|
||||
|
||||
if ($resql && $db->num_rows($resql) > 0)
|
||||
if ($resql && $this->db->num_rows($resql) > 0)
|
||||
{
|
||||
$num = $db->num_rows($resql);
|
||||
$num = $this->db->num_rows($resql);
|
||||
$i = 0;
|
||||
|
||||
require_once $params['file'];
|
||||
$object = new $params['class']($db);
|
||||
$object = new $params['class']($this->db);
|
||||
|
||||
while ($i < $num && ! $error)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user