FIX : cast int

This commit is contained in:
Gauthier PC portable 024 2021-04-19 09:15:47 +02:00
parent f8fcf7c16b
commit 5b6439ca5e

View File

@ -638,7 +638,7 @@ class AdvanceTargetingMailing extends CommonObject
}
} elseif ($extrafields->attributes[$elementtype]['type'][$key] == 'boolean') {
if ($arrayquery['options_'.$key]!=''){
$sqlwhere[]= " (te.".$key." = ".$arrayquery['options_'.$key].")";
$sqlwhere[]= " (te.".$key." = ".((int)$arrayquery['options_'.$key]).")";
}
} elseif ($extrafields->attributes[$elementtype]['type'][$key] == 'link') {
if ($arrayquery['options_'.$key] > 0){