Update datapolicycron.class.php
This commit is contained in:
parent
df51c0ea51
commit
7c615fafb9
@ -451,7 +451,7 @@ class DataPolicyCron
|
|||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
foreach ($arrayofparameters as $key => $params) {
|
foreach ($arrayofparameters as $key => $params) {
|
||||||
if (getDolGlobalInt($key) != '' && is_numeric(getDolGlobalInt($key)) && (int) getDolGlobalInt($key) > 0) {
|
if (getDolGlobalInt($key) > 0) {
|
||||||
$sql = sprintf($params['sql'], (int) $conf->entity, (int) getDolGlobalInt($key), (int) getDolGlobalInt($key));
|
$sql = sprintf($params['sql'], (int) $conf->entity, (int) getDolGlobalInt($key), (int) getDolGlobalInt($key));
|
||||||
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user