Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
BUGFIX: ->Password() function now actually acts on the $twice parameter
  • Loading branch information
hash-bang committed Aug 20, 2013
1 parent 2a16319 commit 3a5ca0a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions libraries/waveform.php
Expand Up @@ -1475,11 +1475,13 @@ function _AcceptFile($tmppath, $path) {
*/
function Password($twice = TRUE) {
$this->type = WAVEFORM_TYPE_PASSWORD;
$this->parent->Define($cloned = $this->field . '_again')
->Title($this->title . ' again')
->Type('password')
->_style = $this->_style;
$this->SameAs($cloned, 'Passwords must match');
if ($twice) {
$this->parent->Define($cloned = $this->field . '_again')
->Title($this->title . ' again')
->Type('password')
->_style = $this->_style;
$this->SameAs($cloned, 'Passwords must match');
}
return $this;
}

Expand Down

0 comments on commit 3a5ca0a

Please sign in to comment.