Skip to content

Commit

Permalink
make string conversion in ForumHelper::secure() less specific
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlaefer committed Jun 23, 2015
1 parent 79bee59 commit b395b71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/View/Helper/FormHelper.php
Expand Up @@ -557,10 +557,10 @@ public function secure(array $fields = [], array $secureAttributes = [])
$unlockedFields = $this->_unlockedFields;

foreach ($fields as $key => $value) {
if (is_numeric($value)) {
$value = (string)$value;
}
if (!is_int($key)) {
if (is_numeric($value)) {
$value = (string)$value;
}
$locked[$key] = $value;
unset($fields[$key]);
}
Expand Down

0 comments on commit b395b71

Please sign in to comment.