Skip to content

Commit 19fb328

Browse files
committed
MongoCursorException: Invalid modifier specified: ; Fixes: #87
1 parent 92c7876 commit 19fb328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenssegers/Mongodb/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ public function increment($column, $amount = 1, array $extra = array())
398398
);
399399
if(!empty($extra))
400400
{
401-
$query[] = array('$set' => $extra);
401+
$query['$set'] = $extra;
402402
}
403403
// Protect
404404
$this->whereNotNull($column);

0 commit comments

Comments
 (0)