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

Merged
merged 1 commit into from Nov 20, 2012
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);
}
}