2
0
forked from Wavyzz/dolibarr

Debug v19

This commit is contained in:
Laurent Destailleur
2023-10-14 16:23:28 +02:00
parent 266b7ac61b
commit cbb60d8b5e
7 changed files with 86 additions and 119 deletions

View File

@@ -974,7 +974,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
$sql = "SELECT tms FROM ".MAIN_DB_PREFIX."const";
$sql .= " WHERE ".$this->db->decrypt('name')." = '".$this->db->escape($this->const_name)."'";
$sql .= " AND entity IN (0, ".$conf->entity.")";
$sql .= " AND entity IN (0, ".((int) $conf->entity).")";
dol_syslog(get_class($this)."::getLastActiveDate", LOG_DEBUG);
$resql = $this->db->query($sql);