Fix test for null in Object::find

This commit is contained in:
Isaac Connor committed 2022-10-18 13:29:12 -04:00
1 parent 1be399026e
commit c698027ac9
1 file changed
+1 -1
+1 -1
View File
@@ -95,7 +95,7 @@ class ZM_Object {
$fields = array();
$sql .= 'WHERE ';
foreach ( $parameters as $field => $value ) {
if ( $value == null ) {
if ( $value === null ) {
$fields[] = '`'.$field.'` IS NULL';
} else if ( is_array($value) ) {
if ( count($value) ) {