From 25d597910f7f868e2c483ac13e1007990c793847 Mon Sep 17 00:00:00 2001 From: Mark van Driel Date: Wed, 8 Mar 2017 23:19:37 +0100 Subject: [PATCH] Code cleanup --- lib/Cake/View/Helper/FormHelper.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index 6e5a56482..810d5a358 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -1088,8 +1088,7 @@ class FormHelper extends AppHelper { if (!empty($divOptions['tag'])) { $tag = $divOptions['tag']; - unset($divOptions['tag']); - unset($divOptions['errorClass']); + unset($divOptions['tag'], $divOptions['errorClass']); $output = $this->Html->tag($tag, $output, $divOptions); } return $output;