Skip to content

Commit

Permalink
Fix for issue 3001 Zend\Db\Sql\Predicate\Between fails with min and m…
Browse files Browse the repository at this point in the history
…ax values of 0
  • Loading branch information
stormwild committed Nov 18, 2012
1 parent 9e1f2c7 commit 2ce06a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Zend/Db/Sql/Predicate/Between.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public function __construct($identifier = null, $minValue = null, $maxValue = nu
if ($identifier) {
$this->setIdentifier($identifier);
}
if ($minValue) {
if (!is_null($minValue)) {
$this->setMinValue($minValue);
}
if ($maxValue) {
if (!is_null($maxValue)) {
$this->setMaxValue($maxValue);
}
}
Expand Down

0 comments on commit 2ce06a4

Please sign in to comment.