Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix for issue 3001 Zend\Db\Sql\Predicate\Between fails with min and max ... #3007

Merged
merged 1 commit into from

2 participants

@stormwild

Fix for issue 3001 Zend\Db\Sql\Predicate\Between fails with min and max values of 0.

Added !is_null()

Not sure how to add a testcase yet.

@ralphschindler ralphschindler merged commit 2ce06a4 into from
@stormwild stormwild deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 18, 2012
  1. @stormwild
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Db/Sql/Predicate/Between.php
View
4 library/Zend/Db/Sql/Predicate/Between.php
@@ -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);
}
}
Something went wrong with that request. Please try again.