Skip to content

Commit

Permalink
Fixed: #101
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammaye committed Aug 16, 2013
1 parent 7a875f9 commit f2500ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EMongoDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,8 @@ public function saveCounters(array $counters,$lower=null,$upper=null) {
if(sizeof($counters)>0){
foreach($counters as $k => $v){
if(
($lower!==null&&(($this->$k+$v)>$lower))||
($upper!==null&&(($this->$k+$v)<$upper))||
($lower!==null&&(($this->$k+$v)>=$lower))||
($upper!==null&&(($this->$k+$v)<=$upper))||
($lower===null&&$upper===null)
){
$this->$k=$this->$k+$v;
Expand Down

0 comments on commit f2500ad

Please sign in to comment.