|
@@ -451,7 +451,7 @@ class DataPolicyCron
|
|
|
$this->db->begin();
|
|
|
|
|
|
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));
|
|
|
|
|
|
$resql = $this->db->query($sql);
|