IN () being false could still result in a true result of used in an OR, so instead of just returning, use an always false sql equivalent

pull/3667/head
Isaac Connor 2022-10-18 13:28:24 -04:00
parent 0e88c58e0c
commit 5b29e018d0
1 changed files with 1 additions and 2 deletions

View File

@ -103,9 +103,8 @@ class ZM_Object {
$fields[] = '`'.$field.'` IN ('.implode(',', array_map($func, $value)). ')';
$values += $value;
} else {
return array();
$fields[] = '`'.$field'` IN (select top 0 0)'; # evaluates to false
}
} else {
$fields[] = '`'.$field.'`=?';
$values[] = $value;