Skip to content

Commit

Permalink
Merge branch 'patch-2' of https://github.com/gpeltink/zf2
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Sep 4, 2012
2 parents ceeccff + 156cfc0 commit 2db58cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Zend/Form/Element/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
));
}

Expand Down

0 comments on commit 2db58cf

Please sign in to comment.