Debug v21

This commit is contained in:
Laurent Destailleur (aka Eldy) 2025-01-13 21:25:36 +01:00
parent 44a5c320fc
commit f35c232530

View file

@ -490,7 +490,7 @@ class ConferenceOrBoothAttendee extends CommonObject
foreach ($filter as $key => $value) {
if ($key == 't.rowid' || $key == 't.fk_soc' || $key == 't.fk_project' || $key == 't.fk_actioncomm') {
$sqlwhere[] = $this->db->sanitize($key).' = '.((int) $value);
} elseif (in_array($this->fields[$key]['type'], array('date', 'datetime', 'timestamp'))) {
} elseif (!empty($this->fields[$key]) && in_array($this->fields[$key]['type'], array('date', 'datetime', 'timestamp'))) {
$sqlwhere[] = $this->db->sanitize($key)." = '".$this->db->idate($value)."'";
} elseif ($key == 'customsql') {
$sqlwhere[] = $value;