Update advtargetemailing.class.php

This commit is contained in:
Laurent Destailleur 2021-04-27 01:45:10 +02:00 committed by GitHub
parent 318a783237
commit e9b8e81773
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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