diff --git a/EMongoModifier.php b/EMongoModifier.php index a43dbab3..ea410b28 100644 --- a/EMongoModifier.php +++ b/EMongoModifier.php @@ -93,7 +93,7 @@ public function getModifiers() { foreach($rule as $operator=>$value) { - if(is_array($modifier[$operator])) + if(isset($modifier[$operator]) && is_array($modifier[$operator])) { $modifier[$operator] = array_merge($modifier[$operator], array($fieldName=>$value)); } else {