Skip to content
Permalink
Browse files

Combine code paths.

At the end of both if/else arms we should have an array that can be
pushed through Hash::filter().

Refs #8654
  • Loading branch information...
markstory committed Jun 29, 2016
1 parent 57e0a97 commit 7c2d6ae1977c9c135de95177c488b1a8875fc9d6
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/Cake/View/Helper/FormHelper.php
@@ -663,11 +663,10 @@ protected function _secure($lock, $field = null, $value = null) {
if (!$field) {
$field = $this->entity();
} elseif (is_string($field)) {
$field = Hash::filter(explode('.', $field));
$field = explode('.', $field);
}
if (is_array($field)) {
$field = array_filter($field, 'strlen');
$field = Hash::filter($field);
}
foreach ($this->_unlockedFields as $unlockField) {

0 comments on commit 7c2d6ae

Please sign in to comment.
You can’t perform that action at this time.