mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-26 00:08:30 -04:00
Fix test for null in Object::find
This commit is contained in:
1 parent
1be399026e
commit
c698027ac9
1 file changed
+1
-1
@@ -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) ) {
|
||||
|
||||
Reference in new issue
Block a user