From 4094dbbf599337205933955feb3d05f1f0ea3ad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dariusz=20G=C3=B3recki?= Date: Thu, 10 Feb 2011 13:06:39 +0100 Subject: [PATCH] Fixed issue 27 Check if array key exists before access --- EMongoModifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {