Merge pull request #21439 from bb2a/FIX---php-V8-user-class

FIX - php V8 user class
This commit is contained in:
Laurent Destailleur 2022-07-04 15:48:50 +02:00 committed by GitHub
commit c1b602e056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;