Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 2db58cf909cf683be3d01442c2d093d3337a6de5 2 parents ceeccff + 156cfc0
@weierophinney weierophinney authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Form/Element/Number.php
View
4 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,
));
}
Please sign in to comment.
Something went wrong with that request. Please try again.