Skip to content

Commit

Permalink
Cast boolean instead of double not
Browse files Browse the repository at this point in the history
bcrowe committed Oct 21, 2014
1 parent b06b69f commit e821d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/League/Monga/Collection.php
Original file line number Diff line number Diff line change
@@ -360,7 +360,7 @@ public function update($values = array(), $query = null, $options = array())

$result = $this->collection->update($query, $values, $options);

return $result === true or !! $result['ok'];
return $result === true or (bool) $result['ok'];
}

/**

0 comments on commit e821d3e

Please sign in to comment.