Skip to content

Commit

Permalink
Fixed issue 27
Browse files Browse the repository at this point in the history
Check if array key exists before access
  • Loading branch information
canni committed Feb 10, 2011
1 parent 1f0324f commit 4094dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EMongoModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4094dbb

Please sign in to comment.