Skip to content
Browse files

Merge branch 'patch-1' of https://github.com/gpeltink/zf2

  • Loading branch information...
2 parents 3a4cee6 + 9a4571f commit ef9027574230c85943882184dab322efe62d3c26 @weierophinney weierophinney committed Sep 4, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 library/Zend/Form/Element/Range.php
View
8 library/Zend/Form/Element/Range.php
@@ -53,12 +53,12 @@ protected function getValidators()
}
$validators[] = new GreaterThanValidator(array(
- 'min' => (isset($this->attributes['min'])) ?: 0,
+ 'min' => (isset($this->attributes['min'])) ? $this->attributes['min'] : 0,
'inclusive' => $inclusive
));
$validators[] = new LessThanValidator(array(
- 'max' => (isset($this->attributes['max'])) ?: 100,
+ 'max' => (isset($this->attributes['max'])) ? $this->attributes['max'] : 100,
'inclusive' => $inclusive
));
@@ -67,8 +67,8 @@ protected function getValidators()
|| 'any' !== $this->attributes['step']
) {
$validators[] = new StepValidator(array(
- 'baseValue' => (isset($this->attributes['min'])) ?: 0,
- 'step' => (isset($this->attributes['step'])) ?: 1,
+ 'baseValue' => (isset($this->attributes['min'])) ? $this->attributes['min'] : 0,
+ 'step' => (isset($this->attributes['step'])) ? $this->attributes['step'] : 1,
));
}

0 comments on commit ef90275

Please sign in to comment.
Something went wrong with that request. Please try again.