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

This commit is contained in:
Isaac Connor committed 2022-10-20 10:22:56 -04:00
1 parent 837d0ece7f
commit ff01d4d394
1 file changed
+1 -2
+1 -2
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;