Update skillrank.class.php

This commit is contained in:
Laurent Destailleur 2022-06-12 18:49:14 +02:00 committed by GitHub
parent bea431cbb9
commit 74c4cb618d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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