FIX - php V8 user class

This commit is contained in:
BB2A Anthony Berton 2022-07-04 10:01:17 +02:00 committed by Laurent Destailleur
parent 1375cae10c
commit f9eee31f74

View File

@ -3796,7 +3796,7 @@ class User extends CommonObject
foreach ($filter as $key => $value) {
if ($key == 't.rowid') {
$sqlwhere[] = $key." = ".((int) $value);
} elseif (in_array($this->fields[$key]['type'], array('date', 'datetime', 'timestamp'))) {
} elseif (isset($this->fields[$key]['type']) && in_array($this->fields[$key]['type'], array('date', 'datetime', 'timestamp'))) {
$sqlwhere[] = $key." = '".$this->db->idate($value)."'";
} elseif ($key == 'customsql') {
$sqlwhere[] = $value;