Permalink
Browse files

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

  • Loading branch information...
2 parents ceeccff + 156cfc0 commit 2db58cf909cf683be3d01442c2d093d3337a6de5 @weierophinney weierophinney committed Sep 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Form/Element/Number.php
@@ -77,8 +77,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 2db58cf

Please sign in to comment.